ServicePoint.CurrentConnections Właściwość

Definicja

Pobiera liczbę otwartych połączeń skojarzonych z tym ServicePoint obiektem.

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

Wartość właściwości

Liczba otwartych połączeń skojarzonych z tym ServicePoint obiektem.

Przykłady

W poniższym przykładzie kodu użyto CurrentConnections właściwości , aby określić liczbę otwartych połączeń internetowych skojarzonych z tym ServicePoint obiektem.

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

Uwagi

Właściwość CurrentConnections zawiera liczbę otwartych połączeń internetowych skojarzonych z tym ServicePoint obiektem. Wartość CurrentConnections nie może przekroczyć wartości .ConnectionLimit

Dotyczy