ServicePoint.CurrentConnections Propiedad

Definición

Obtiene el número de conexiones abiertas asociadas a este objeto ServicePoint.

public:
 property int CurrentConnections { int get(); };
public int CurrentConnections { get; }
member this.CurrentConnections : int
Public ReadOnly Property CurrentConnections As Integer

Valor de propiedad

Número de conexiones abiertas asociadas a este objeto ServicePoint.

Ejemplos

En el ejemplo de código siguiente se usa la CurrentConnections propiedad para determinar el número de conexiones abiertas a Internet asociadas a este ServicePoint objeto.

// Display the ServicePoint Internet resource address.
Console::WriteLine( "Address = {0}", sp->Address );
// Display the ServicePoint Internet resource address.
Console.WriteLine("Address = {0} ", sp.Address.ToString());
' Display the ServicePoint Internet resource address.
Console.WriteLine(("Address = " + sp.Address.ToString()))

Comentarios

La CurrentConnections propiedad contiene el número de conexiones abiertas a Internet asociadas a este ServicePoint objeto. El valor de CurrentConnections no puede superar el de ConnectionLimit.

Se aplica a