ServicePoint.ConnectionName Propiedad

Definición

Obtiene el nombre de la conexión.

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

Valor de propiedad

String

String que representa el nombre de la conexión.

Ejemplos

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

Comentarios

Si el ServicePoint objeto se construyó llamando a una FindServicePoint sobrecarga con un Uri argumento , la ConnectionName propiedad representa la Scheme propiedad del Uri objeto utilizado.

Si el ServicePoint objeto se construyó a partir de un host de red y un puerto, la ConnectionName propiedad contiene una cadena que representa el host y el puerto de red. Si la ConnectionName propiedad se establece cuando se construye a partir de un host y puerto, solo WebRequest los objetos con el mismo ConnectionGroupName valor pueden usar este ServicePoint objeto.

Se aplica a

Consulte también