ServicePoint.CurrentConnections 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이 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.ToString());
' Display the ServicePoint Internet resource address.
Console.WriteLine(("Address = " + sp.Address.ToString()))
설명
Caution
WebRequest, HttpWebRequest, ServicePoint및 WebClient 사용되지 않으므로 새 개발에 사용하면 안 됩니다.
HttpClient를 대신 사용하세요.
이 속성에는 CurrentConnections 이 ServicePoint 개체와 연결된 열린 인터넷 연결 수가 포함됩니다. 의 CurrentConnections 값을 초과 ConnectionLimit할 수 없습니다.
메모
이 속성은 .NET Framework에서만 구현됩니다.