ServicePoint.ConnectionName Özellik

Tanım

Bağlantı adını alır.

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

Özellik Değeri

String Bağlantı adını temsil eden bir.

Örnekler

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

Açıklamalar

Caution

WebRequest, HttpWebRequest, ServicePointve WebClient kullanım dışıdır ve bunları yeni geliştirme için kullanmamalısınız. Bunun yerine HttpClient kullanın.

ServicePoint Nesnesi bir bağımsız değişkenle FindServicePoint aşırı Uri yükleme çağrılarak oluşturulduysaConnectionName, özelliği kullanılan nesnenin Scheme özelliğini temsil ederUri.

ServicePoint Nesnesi bir ağ konağından ve bağlantı noktasından ConnectionName oluşturulduysa, özelliği konağı ve ağ bağlantı noktasını temsil eden bir dize içerir. ConnectionName Özellik bir konak ve bağlantı noktasından oluşturulduğunda ayarlanırsa, bu WebRequest nesneyi yalnızca ConnectionGroupName aynı ServicePoint değere sahip nesneler kullanabilir.

Şunlara uygulanır

Ayrıca bkz.