ServicePoint.ConnectionName Propriedade

Definição

Obtém o nome da conexão.

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

Valor da propriedade

Um String que representa o nome da conexão.

Exemplos

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

Comentários

Se o ServicePoint objeto foi construído chamando uma FindServicePoint sobrecarga com um Uri argumento , a ConnectionName propriedade representa a Scheme propriedade do Uri objeto usado.

Se o ServicePoint objeto foi construído a partir de um host de rede e porta, a ConnectionName propriedade contém uma cadeia de caracteres que representa o host e a porta de rede. Se a ConnectionName propriedade for definida quando construída a partir de um host e porta, somente WebRequest objetos com o mesmo ConnectionGroupName valor poderão usar esse ServicePoint objeto.

Aplica-se a

Confira também