FormsAuthenticationConfiguration.Cookieless プロパティ

定義

フォーム ベースの認証で Cookie を使用するかどうかを示す値を取得または設定します。

public:
 property System::Web::HttpCookieMode Cookieless { System::Web::HttpCookieMode get(); void set(System::Web::HttpCookieMode value); };
[System.Configuration.ConfigurationProperty("cookieless", DefaultValue=System.Web.HttpCookieMode.UseDeviceProfile)]
public System.Web.HttpCookieMode Cookieless { get; set; }
[<System.Configuration.ConfigurationProperty("cookieless", DefaultValue=System.Web.HttpCookieMode.UseDeviceProfile)>]
member this.Cookieless : System.Web.HttpCookieMode with get, set
Public Property Cookieless As HttpCookieMode

プロパティ値

HttpCookieMode値の 1 つ。 既定値は UseDeviceProfile です。

属性

次のコード例は、 Cookieless プロパティにアクセスする方法を示しています。 セクションを取得する方法については、 FormsAuthenticationConfiguration クラスのトピックのコード例を参照してください。

// Get current Cookieless.
System.Web.HttpCookieMode currentCookieless =
    formsAuthentication.Cookieless;

// Set current Cookieless.
formsAuthentication.Cookieless =
    HttpCookieMode.AutoDetect;
' Get current Cookieless.
Dim currentCookieless _
As System.Web.HttpCookieMode =
formsAuthentication.Cookieless

' Set current Cookieless.
formsAuthentication.Cookieless = HttpCookieMode.AutoDetect

注釈

Cookieless プロパティは、フォーム ベースの認証で Cookie を使用してユーザー情報を交換するかどうかを定義します。

適用対象

こちらもご覧ください