ServicePoint.CurrentConnections プロパティ

定義

ServicePoint オブジェクトに関連付けられている、開いている接続の数を取得します。

public:
 property int CurrentConnections { int get(); };
public int CurrentConnections { get; }
member this.CurrentConnections : int
Public ReadOnly Property CurrentConnections As Integer

プロパティ値

ServicePoint オブジェクトに関連付けられている、開いている接続の数。

次のコード例では、 プロパティを CurrentConnections 使用して、この ServicePoint オブジェクトに関連付けられている開いているインターネット接続の数を決定します。

// Display the ServicePoint Internet resource address.
Console::WriteLine( "Address = {0}", sp->Address );
// Display the ServicePoint Internet resource address.
Console.WriteLine("Address = {0} ", sp.Address.ToString());
' Display the ServicePoint Internet resource address.
Console.WriteLine(("Address = " + sp.Address.ToString()))

注釈

プロパティには CurrentConnections 、このオブジェクトに関連付けられている開いているインターネット接続の数が ServicePoint 含まれます。 の CurrentConnections 値は、 の ConnectionLimit値を超えることはできません。

適用対象