WebRequest.ConnectionGroupName WebRequest.ConnectionGroupName WebRequest.ConnectionGroupName WebRequest.ConnectionGroupName Property

定义

当在子类中重写时,获取或设置请求的连接组的名称。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; }
member this.ConnectionGroupName : string with get, set
Public Overridable Property ConnectionGroupName As String

属性值

请求的连接组的名称。The name of the connection group for the request.

异常

当未在子类中重写该属性时,试图获取或设置该属性。Any attempt is made to get or set the property, when the property is not overridden in a descendant class.

注解

ConnectionGroupName属性将应用程序内的特定请求关联到一个或多个连接池。The ConnectionGroupName property associates specific requests within an application to one or more connection pools.

备注

类是一个abstract类。 WebRequestThe WebRequest class is an abstract class. WebRequest实例在运行时的实际行为由WebRequest.Create方法返回的子代类确定。The actual behavior of WebRequest instances at run time is determined by the descendant class returned by the WebRequest.Create method. 有关默认值和异常的详细信息,请参阅子代类的文档,例如HttpWebRequest和。 FileWebRequestFor more information about default values and exceptions, see the documentation for the descendant classes, such as HttpWebRequest and FileWebRequest.

继承者说明

ConnectionGroupName属性通常会将共享一组凭据的一组请求与 Internet 资源关联,以避免潜在的安全问题。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.

适用于

另请参阅