Share via


ServicePoint.CurrentConnections 속성

정의

ServicePoint 개체와 관련된 열린 연결 수를 가져옵니다.

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

속성 값

ServicePoint 개체와 관련된 열린 연결 수입니다.

예제

다음 코드 예제를 사용 합니다 CurrentConnections 속성을이 ServicePoint 개체와 연결 된 열려 있는 인터넷 연결의 수를 확인 합니다.

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

설명

속성에는 이 CurrentConnectionsServicePoint 개체와 연결된 열린 인터넷 연결 수가 포함됩니다. 의 CurrentConnections 값은 의 ConnectionLimit값을 초과할 수 없습니다.

적용 대상