接続を確立した WebRequest によって決定される接続グループ名を取得します。
Public ReadOnly Property ConnectionName As String
[C#]
public string ConnectionName {get;}
[C++]
public: __property String* get_ConnectionName();
[JScript]
public function get ConnectionName() : String;
プロパティ値
接続を確立した WebRequest インスタンスが割り当てる接続グループ名を格納している文字列。
解説
ConnectionName プロパティは、 ServicePoint が提供する接続を開始した WebRequest の ConnectionGroupName プロパティに割り当てられる接続グループを格納します。 ConnectionName プロパティが設定されている場合は、 ConnectionGroupName が同じ WebRequest インスタンスだけが ServicePoint を使用できます。
使用例
Console.WriteLine(("ConnectionName = " + sp.ConnectionName))
' Display the maximum number of connections allowed on this
' ServicePoint instance.
Console.WriteLine(("ConnectionLimit = " + sp.ConnectionLimit.ToString()))
' Display the number of connections associated with this
' ServicePoint instance.
Console.WriteLine(("CurrentConnections = " + sp.CurrentConnections.ToString()))
[C#]
Console.WriteLine ("ConnectionName = " + sp.ConnectionName);
// Display the maximum number of connections allowed on this
// ServicePoint instance.
Console.WriteLine ("ConnectionLimit = " + sp.ConnectionLimit);
// Display the number of connections associated with this
// ServicePoint instance.
Console.WriteLine ("CurrentConnections = " + sp.CurrentConnections);
[C++]
Console::WriteLine(S"ConnectionName = {0}", sp->ConnectionName);
// Display the maximum number of connections allowed on this
// ServicePoint instance.
Console::WriteLine(S"ConnectionLimit = {0}", __box(sp->ConnectionLimit));
// Display the number of connections associated with this
// ServicePoint instance.
Console::WriteLine(S"CurrentConnections = {0}", __box(sp->CurrentConnections));
[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
参照
ServicePoint クラス | ServicePoint メンバ | System.Net 名前空間 | 接続のグループ化