ServicePoint.ConnectionName Eigenschaft

Definition

Ruft den Verbindungsnamen ab.

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

Eigenschaftswert

Eine String, die den Verbindungsnamen darstellt.

Beispiele

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

Hinweise

Wenn das ServicePoint Objekt durch Aufrufen einer FindServicePoint Überladung mit einem Uri Argument erstellt wurde, stellt die ConnectionName -Eigenschaft die Scheme -Eigenschaft des Uri verwendeten Objekts dar.

Wenn das ServicePoint Objekt aus einem Netzwerkhost und Port erstellt wurde, enthält die ConnectionName -Eigenschaft eine Zeichenfolge, die den Host und den Netzwerkport darstellt. Wenn die ConnectionName Eigenschaft festgelegt wird, wenn sie von einem Host und Port erstellt wird, können nur WebRequest Objekte mit demselben ConnectionGroupName Wert dieses ServicePoint Objekt verwenden.

Gilt für:

Weitere Informationen