ServicePoint.ConnectionName Właściwość

Definicja

Pobiera nazwę połączenia.

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

Wartość właściwości

Element String reprezentujący nazwę połączenia.

Przykłady

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

Uwagi

ServicePoint Jeśli obiekt został skonstruowany przez wywołanie FindServicePoint przeciążenia argumentemUri, ConnectionName właściwość reprezentuje Scheme właściwość używanego Uri obiektu.

ServicePoint Jeśli obiekt został skonstruowany z hosta sieciowego i portu, ConnectionName właściwość zawiera ciąg reprezentujący hosta i port sieciowy. ConnectionName Jeśli właściwość jest ustawiana podczas konstruowania z hosta i portu, tylko WebRequest obiekty o tej samej ConnectionGroupName wartości mogą używać tego ServicePoint obiektu.

Dotyczy

Zobacz też