語言

CookieHandlerElement.GetConfiguredCookieHandler 方法

定義

根據設定屬性,會換一個新的 Cookie 處理器。

public:
 System::IdentityModel::Services::CookieHandler ^ GetConfiguredCookieHandler();
public System.IdentityModel.Services.CookieHandler GetConfiguredCookieHandler();
member this.GetConfiguredCookieHandler : unit -> System.IdentityModel.Services.CookieHandler
Public Function GetConfiguredCookieHandler () As CookieHandler

傳回

餅乾處理者。 這將是根據目前實例屬性設定的處理器類型,或是該實例的實例CookieHandlerChunkedCookieHandler。

例外狀況

無法從目前實例的屬性建立 Cookie 處理器。

備註

此方法回傳與設定一致的 Cookie 處理器。 回傳的 Cookie 處理器會根據設定屬性的設定方式,可能是分塊 Cookie 處理器或自訂 Cookie 處理器。 如需詳細資訊,請參閱CookieHandlerElement。

適用於