ServicePoint.CurrentConnections Propriedade

Definição

Obtém o número de conexões abertas associadas a este objeto ServicePoint.Gets the number of open connections associated with this ServicePoint object.

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

Valor da propriedade

Int32

O número de conexões abertas associadas a este objeto ServicePoint.The number of open connections associated with this ServicePoint object.

Exemplos

O exemplo de código a seguir usa a CurrentConnections propriedade para determinar o número de conexões de Internet abertas associadas a esse ServicePoint objeto.The following code example uses the CurrentConnections property to determine the number of open Internet connections associated with this ServicePoint object.

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

Comentários

A CurrentConnections propriedade contém o número de conexões de Internet abertas associadas a este ServicePoint objeto.The CurrentConnections property contains the number of open Internet connections associated with this ServicePoint object. O valor de CurrentConnections não pode exceder o de ConnectionLimit .The value of CurrentConnections cannot exceed that of ConnectionLimit.

Aplica-se a