ServicePoint.ConnectionName 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
연결 이름을 가져옵니다.
public:
property System::String ^ ConnectionName { System::String ^ get(); };
public string ConnectionName { get; }
member this.ConnectionName : string
Public ReadOnly Property ConnectionName As String
속성 값
연결 이름을 나타내는 A String 입니다.
예제
Console.WriteLine("ConnectionName = " + sp.ConnectionName);
// Display the maximum number of connections allowed on this
// ServicePoint instance.
Console.WriteLine("ConnectionLimit = " + sp.ConnectionLimit);
// Display the number of connections associated with this
// ServicePoint instance.
Console.WriteLine("CurrentConnections = " + sp.CurrentConnections);
Console.WriteLine(("ConnectionName = " + sp.ConnectionName))
' Display the maximum number of connections allowed on this
' ServicePoint instance.
Console.WriteLine(("ConnectionLimit = " + sp.ConnectionLimit.ToString()))
' Display the number of connections associated with this
' ServicePoint instance.
Console.WriteLine(("CurrentConnections = " + sp.CurrentConnections.ToString()))
설명
Caution
WebRequest, HttpWebRequest, ServicePoint및 WebClient 사용되지 않으므로 새 개발에 사용하면 안 됩니다.
HttpClient를 대신 사용하세요.
인수를 ServicePoint 사용하여 오버로드를 호출하여 개체를 FindServicePointUri 생성한 경우 속성은 사용된 개체의 ConnectionName 속성을 나타냅니다Scheme.Uri
개체가 ServicePoint 네트워크 호스트 및 포트 ConnectionName 에서 생성된 경우 속성에는 호스트 및 네트워크 포트를 나타내는 문자열이 포함됩니다. ConnectionName 호스트 및 포트에서 생성될 때 속성이 설정된 경우 값이 같은 WebRequest 개체만 ConnectionGroupName 이 ServicePoint 개체를 사용할 수 있습니다.