CookieHandlerElement.GetConfiguredCookieHandler 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據設定屬性,會換一個新的 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。