Export (0) Print
Expand All

ServicePoint.CurrentConnections Property

Gets the number of connections associated with this ServicePoint.

[Visual Basic]
Public ReadOnly Property CurrentConnections As Integer
[C#]
public int CurrentConnections {get;}
[C++]
public: __property int get_CurrentConnections();
[JScript]
public function get CurrentConnections() : int;

Property Value

The number of connections associated with this ServicePoint.

Remarks

The CurrentConnections property contains the number of active Internet connections associated with this ServicePoint. The value of CurrentConnections cannot exceed that of ConnectionLimit.

Example

[Visual Basic, C#, C++] The following example uses the CurrentConnections property to determine the number of active Internet connections associated with this ServicePoint.

[Visual Basic] 
' Display the ServicePoint Internet resource address.
Console.WriteLine(("Address = " + sp.Address.ToString()))


[C#] 
// Display the ServicePoint Internet resource address.
Console.WriteLine ("Address = {0} ", sp.Address.ToString ());


[C++] 
// Display the ServicePoint Internet resource address.
Console::WriteLine(S"Address = {0}", sp->Address);

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

ServicePoint Class | ServicePoint Members | System.Net Namespace

Show:
© 2014 Microsoft