ServicePoint.CloseConnectionGroup(String) Method

Definition

Removes the specified connection group from this ServicePoint object.

public:
 bool CloseConnectionGroup(System::String ^ connectionGroupName);
public bool CloseConnectionGroup (string connectionGroupName);
member this.CloseConnectionGroup : string -> bool
Public Function CloseConnectionGroup (connectionGroupName As String) As Boolean

Parameters

connectionGroupName
String

The name of the connection group that contains the connections to close and remove from this service point.

Returns

A Boolean value that indicates whether the connection group was closed.

Remarks

Caution

WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete, and you shouldn't use them for new development. Use HttpClient instead.

Connection groups associate a set of requests with a particular connection or set of connections. This method removes and closes all connections that belong to the specified connection group.

Applies to