ServicePoint.CurrentConnections Vlastnost

Definice

Získá počet otevřených připojení přidružených k tomuto ServicePoint objektu.

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

Hodnota vlastnosti

Počet otevřených připojení přidružených k tomuto ServicePoint objektu.

Příklady

Následující příklad kódu používá CurrentConnections vlastnost k určení počtu otevřených internetových připojení přidružených k tomuto ServicePoint objektu.

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

Poznámky

Vlastnost CurrentConnections obsahuje počet otevřených internetových připojení přidružených k tomuto ServicePoint objektu. Hodnota parametru CurrentConnections nemůže překročit ConnectionLimithodnotu .

Platí pro