FormsAuthenticationConfiguration.Cookieless Własność
Definicja
Ważny
Niektóre informacje dotyczą produktów przedpremierowych, które mogą zostać znacznie zmodyfikowane przed premierą. Microsoft nie udziela żadnych gwarancji, ani wyraźnych, ani domniemanych, dotyczących informacji podanych tutaj.
Pobiera lub ustawia wartość wskazującą, czy uwierzytelnianie oparte na formularzach powinno używać plików 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
Wartość nieruchomości
HttpCookieMode Jedna z wartości. Wartość domyślna to UseDeviceProfile.
- Atrybuty
Przykłady
W poniższym przykładzie kodu pokazano, jak uzyskać dostęp do Cookieless właściwości. Zapoznaj się z przykładem kodu w temacie FormsAuthenticationConfiguration klasy, aby dowiedzieć się, jak uzyskać sekcję.
// 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
Uwagi
Właściwość Cookieless określa, czy uwierzytelnianie oparte na formularzach powinno używać pliku cookie do wymiany informacji o użytkowniku.