ServicePoint.ConnectionName Özellik

Tanım

Bağlantı adını alır.

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

Özellik Değeri

String Bağlantı adını temsil eden bir.

Örnekler

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()))

Açıklamalar

ServicePoint Nesne bir bağımsız değişkenle Uri aşırı FindServicePoint yükleme çağrılarak oluşturulduysaConnectionName, özelliği kullanılan nesnenin Uri özelliğini temsil ederScheme.

ServicePoint Nesne bir ağ konağından ve bağlantı noktasından ConnectionName oluşturulduysa, özelliği konağı ve ağ bağlantı noktasını temsil eden bir dize içerir. ConnectionName Özellik bir konak ve bağlantı noktasından oluşturulurken ayarlanırsa, yalnızca WebRequest aynı ConnectionGroupName değere sahip nesneler bu ServicePoint nesneyi kullanabilir.

Şunlara uygulanır

Ayrıca bkz.