System.Net.ServicePoint.ConnectionName Property

Gets the connection name.

Syntax

public string ConnectionName { get; }

Value

A string containing the value of the WebRequest.ConnectionGroupName property of the System.Net.WebRequest that initiated the connection provided by the current instance.

Remarks

If the System.Net.ServicePoint object was constructed with a Uri object (the ServicePointManager.FindServicePoint(Uri) or ServicePointManager.FindServicePoint(Uri, IWebProxy) methods, for example), then the ServicePoint.ConnectionName property represents the Uri.Scheme property of the Uri object used.

If the System.Net.ServicePoint object was constructed from a network host and port, the ServicePoint.ConnectionName property contains a string that represents the host and the network port. If the ServicePoint.ConnectionName property is set when constructed from a host and port, only System.Net.WebRequest objects with the same WebRequest.ConnectionGroupName value can use this System.Net.ServicePoint object.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0