CookieHandlerElement 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表 <cookieHandler>
組態項目。
public ref class CookieHandlerElement : System::Configuration::ConfigurationElement
public class CookieHandlerElement : System.Configuration.ConfigurationElement
type CookieHandlerElement = class
inherit ConfigurationElement
Public Class CookieHandlerElement
Inherits ConfigurationElement
- 繼承
備註
元素是專案的子專案,而 <cookieHandler>
<federatedAuthentication>
FederationConfiguration.CookieHandler 屬性則設定為類別的實例 CookieHandlerElement 。 <cookieHandler>
元素可用來設定會話驗證模組所使用的 cookie 處理常式, (SAM) (由類別表示) SessionAuthenticationModule 。
您可以使用下列其中一種方式來設定 cookie 處理常式:
若要設定區塊 cookie 處理常式,請將 Mode 屬性設定為 Default 或, Chunked 並 ChunkedCookieHandler 使用您的區塊 cookie 處理常式的設定元素來設定屬性。 CustomCookieHandler不應設定屬性。
若要使用預設區塊大小來設定區塊 cookie 處理常式,您可以 Mode 如先前所述設定屬性,但將和屬性保持未設定 ChunkedCookieHandler CustomCookieHandler 。
若要設定自訂的 cookie 處理常式,請將 Mode 屬性設定為, Custom 並 CustomCookieHandler 使用可識別自訂 cookie 處理常式類型的設定元素來設定屬性。 此型別必須衍生自 CookieHandler 類別。 ChunkedCookieHandler不應設定屬性。
建構函式
CookieHandlerElement() |
初始化 CookieHandlerElement 類別的新執行個體。 |