Aracılığıyla paylaş


FormsAuthenticationConfiguration.Cookieless Özellik

Tanım

Form tabanlı kimlik doğrulamasının tanımlama bilgileri kullanıp kullanmayacağını belirten bir değer alır veya ayarlar.

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

Özellik Değeri

Değerlerden HttpCookieMode biri. UseDeviceProfile varsayılan değerdir.

Öznitelikler

Örnekler

Aşağıdaki kod örneği özelliğine nasıl erişeceklerini Cookieless gösterir. Bölümü nasıl edineceğinizi öğrenmek için sınıf konusunun kod örneğine FormsAuthenticationConfiguration bakın.

           // 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

Açıklamalar

özelliği, Cookieless form tabanlı kimlik doğrulamasının kullanıcı bilgilerini değiştirmek için tanımlama bilgisi kullanıp kullanmayacağını tanımlar.

Şunlara uygulanır

Ayrıca bkz.