ServicePoint.CurrentConnections Özellik

Tanım

Bu ServicePoint nesneyle ilişkili açık bağlantı sayısını alır.

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

Özellik Değeri

Bu ServicePoint nesneyle ilişkili açık bağlantı sayısı.

Örnekler

Aşağıdaki kod örneği, bu ServicePoint nesneyle ilişkili açık İnternet bağlantılarının sayısını belirlemek için özelliğini kullanırCurrentConnections.

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

Açıklamalar

CurrentConnections özelliği, bu ServicePoint nesneyle ilişkili açık İnternet bağlantılarının sayısını içerir. değeri CurrentConnections değerinin değerini aşamaz ConnectionLimit.

Şunlara uygulanır