ServicePoint に関連付けられている接続数を取得します。
Public ReadOnly Property CurrentConnections As Integer
[C#]
public int CurrentConnections {get;}
[C++]
public: __property int get_CurrentConnections();
[JScript]
public function get CurrentConnections() : int;
プロパティ値
ServicePoint に関連付けられている接続数。
解説
CurrentConnections プロパティは、 ServicePoint に関連付けられているアクティブなインターネット接続数を格納します。 CurrentConnections の値は、 ConnectionLimit の値を超えることができません。
使用例
[Visual Basic, C#, C++] CurrentConnections プロパティを使用して、 ServicePoint に関連付けられているアクティブなインターネット接続数を確認する例を次に示します。
' Display the ServicePoint Internet resource address.
Console.WriteLine(("Address = " + sp.Address.ToString()))
[C#]
// Display the ServicePoint Internet resource address.
Console.WriteLine ("Address = {0} ", sp.Address.ToString ());
[C++]
// Display the ServicePoint Internet resource address.
Console::WriteLine(S"Address = {0}", sp->Address);
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET, Common Language Infrastructure (CLI) Standard