Share via


FormsAuthenticationConfiguration.Cookieless プロパティ

定義

フォーム ベース認証がクッキーを使用するかどうかを示す値を取得または設定します。

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 を使用してユーザー情報を交換するかどうかを定義します。

適用対象

こちらもご覧ください