ServicePoint.ConnectionName プロパティ

定義

接続名を取得します。

public:
 property System::String ^ ConnectionName { System::String ^ get(); };
public string ConnectionName { get; }
member this.ConnectionName : string
Public ReadOnly Property ConnectionName As String

プロパティ値

接続名を表す String

Console::WriteLine( "ConnectionName = {0}", sp->ConnectionName );

// Display the maximum number of connections allowed on this 
// ServicePoint instance.
Console::WriteLine( "ConnectionLimit = {0}", sp->ConnectionLimit );

// Display the number of connections associated with this 
// ServicePoint instance.
Console::WriteLine( "CurrentConnections = {0}", sp->CurrentConnections );
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);
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()))

注釈

オブジェクトが引数をServicePoint使用UriしてオーバーロードをFindServicePoint呼び出すことによって構築された場合、 プロパティはConnectionName使用されるオブジェクトの プロパティをUriSchemeします。

オブジェクトが ServicePoint ネットワーク ホストとポートから構築された場合、 ConnectionName プロパティには、ホストとネットワーク ポートを表す文字列が含まれます。 ConnectionNameホストとポートから構築するときに プロパティが設定されている場合、同じConnectionGroupName値を持つオブジェクトのみがWebRequestこのServicePointオブジェクトを使用できます。

適用対象

こちらもご覧ください