Επεξεργασία

Κοινή χρήση μέσω


WebRequest.ConnectionGroupName Property

Definition

When overridden in a descendant class, gets or sets the name of the connection group for the request.

public:
 virtual property System::String ^ ConnectionGroupName { System::String ^ get(); void set(System::String ^ value); };
public virtual string? ConnectionGroupName { get; set; }
public virtual string ConnectionGroupName { get; set; }
member this.ConnectionGroupName : string with get, set
Public Overridable Property ConnectionGroupName As String

Property Value

The name of the connection group for the request.

Exceptions

Any attempt is made to get or set the property, when the property is not overridden in a descendant class.

Remarks

Caution

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

The ConnectionGroupName property associates specific requests within an application to one or more connection pools.

Note

The WebRequest class is an abstract class. The actual behavior of WebRequest instances at run time is determined by the descendant class returned by the WebRequest.Create method. For more information about default values and exceptions, see the documentation for the descendant classes, such as HttpWebRequest and FileWebRequest.

Notes to Inheritors

The ConnectionGroupName property typically associates a group of requests that share a set of credentials with a connection to an Internet resource to avoid potential security failures.

Applies to

See also