ServicePoint.CurrentConnections プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
この 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.ToString());
' Display the ServicePoint Internet resource address.
Console.WriteLine(("Address = " + sp.Address.ToString()))
注釈
Caution
WebRequest、 HttpWebRequest、 ServicePoint、 WebClient は廃止されており、新しい開発には使用しないでください。
HttpClient を代わりに使用します。
CurrentConnections プロパティには、このServicePoint オブジェクトに関連付けられている開いているインターネット接続の数が含まれています。 CurrentConnectionsの値は、ConnectionLimitの値を超えることはできません。
Note
このプロパティは、.NET Framework でのみ実装されます。