ServicePoint.CurrentConnections Proprietà

Definizione

Ottiene il numero di connessioni aperte associate all'oggetto ServicePoint.

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

Valore della proprietà

Numero di connessioni aperte associate all'oggetto ServicePoint.

Esempio

Nell'esempio di codice seguente viene usata la CurrentConnections proprietà per determinare il numero di connessioni Internet aperte associate a questo ServicePoint oggetto.

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

Commenti

La CurrentConnections proprietà contiene il numero di connessioni Internet aperte associate a questo ServicePoint oggetto. Il valore di non può superare quello di CurrentConnectionsConnectionLimit.

Si applica a