Share via


ServicePoint.ConnectionName 속성

정의

연결 이름을 가져옵니다.

public:
 property System::String ^ ConnectionName { System::String ^ get(); };
public string ConnectionName { get; }
member this.ConnectionName : string
Public ReadOnly Property ConnectionName As String

속성 값

연결 이름을 나타내는 String입니다.

예제

Console::WriteLine( "ConnectionName = {0}", sp->ConnectionName );

// Display the maximum number of connections allowed on this 
// ServicePoint instance.
Console::WriteLine( "ConnectionLimit = {0}", sp->ConnectionLimit );

// Display the number of connections associated with this 
// ServicePoint instance.
Console::WriteLine( "CurrentConnections = {0}", sp->CurrentConnections );
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()))

설명

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

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

적용 대상

추가 정보