ServicePoint.ConnectionName 속성

정의

연결 이름을 가져옵니다.

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, ServicePointWebClient 사용되지 않으므로 새 개발에 사용하면 안 됩니다. HttpClient를 대신 사용하세요.

인수를 ServicePoint 사용하여 오버로드를 호출하여 개체를 FindServicePointUri 생성한 경우 속성은 사용된 개체의 ConnectionName 속성을 나타냅니다Scheme.Uri

개체가 ServicePoint 네트워크 호스트 및 포트 ConnectionName 에서 생성된 경우 속성에는 호스트 및 네트워크 포트를 나타내는 문자열이 포함됩니다. ConnectionName 호스트 및 포트에서 생성될 때 속성이 설정된 경우 값이 같은 WebRequest 개체만 ConnectionGroupNameServicePoint 개체를 사용할 수 있습니다.

적용 대상

추가 정보