CookieHandlerElement.CustomCookieHandler 屬性

定義

取得或設定自訂 Cookie 處理常式型別。 正在設定自訂 Cookie 處理常式時,就必須設定這個屬性。

public:
 property System::IdentityModel::Configuration::CustomTypeElement ^ CustomCookieHandler { System::IdentityModel::Configuration::CustomTypeElement ^ get(); void set(System::IdentityModel::Configuration::CustomTypeElement ^ value); };
[System.Configuration.ConfigurationProperty("customCookieHandler", IsRequired=false)]
public System.IdentityModel.Configuration.CustomTypeElement CustomCookieHandler { get; set; }
[<System.Configuration.ConfigurationProperty("customCookieHandler", IsRequired=false)>]
member this.CustomCookieHandler : System.IdentityModel.Configuration.CustomTypeElement with get, set
Public Property CustomCookieHandler As CustomTypeElement

屬性值

定義自訂 Cookie 處理常式類型的 CustomTypeElement

屬性

備註

這個屬性相當於 <customCookieHandler> 專案的 <cookieHandler> 子專案。 它會指定要使用的自訂 Cookie 處理程式類型。 如果已設定這個屬性,則必須將 Mode 屬性設定為 Custom。 這個屬性指定的自定義類型必須衍生自 CookieHandler 類別。

ChunkedCookieHandler可以設定 屬性或 CustomCookieHandler 屬性,但不能同時設定兩者。

適用於

另請參閱