WebRequest.ConnectionGroupName 屬性

定義

在子代類別中覆寫時,取得或設定要求的連接群組名稱。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

屬性值

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.

注意

WebRequest類別是 abstract 類別。The WebRequest class is an abstract class. WebRequest實例在執行時間的實際行為是由方法所傳回的子代類別所決定 WebRequest.CreateThe actual behavior of WebRequest instances at run time is determined by the descendant class returned by the WebRequest.Create method. 如需預設值和例外狀況的詳細資訊,請參閱下階類別的檔,例如 HttpWebRequestFileWebRequestFor more information about default values and exceptions, see the documentation for the descendant classes, such as HttpWebRequest and FileWebRequest.

給繼承者的注意事項

ConnectionGroupName屬性通常會將共用一組認證的要求群組與網際網路資源的連接產生關聯,以避免潛在的安全性失敗。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.

適用於

另請參閱