AnonymousIdentificationSection.CookiePath Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft den Pfad ab, in dem das Cookie gespeichert ist, oder legt den Pfad fest.
public:
property System::String ^ CookiePath { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("cookiePath", DefaultValue="/")]
[System.Configuration.StringValidator(MinLength=1)]
public string CookiePath { get; set; }
[<System.Configuration.ConfigurationProperty("cookiePath", DefaultValue="/")>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.CookiePath : string with get, set
Public Property CookiePath As String
Eigenschaftswert
Der Pfad des HTTP-Cookies, der für die anonyme Identifizierung des Benutzers verwendet werden soll. Der Standardwert ist ein Schrägstrich (/), der den Stamm der Webanwendung darstellt.
- Attribute
Beispiele
Das folgende Codebeispiel zeigt, wie Sie auf die CookiePath Eigenschaft zugreifen.
// Get CookiePath.
string cookiePath =
anonymousIdentificationSection.CookiePath;
Console.WriteLine("Cookie path: {0}", cookiePath);
' Get CookiePath.
Dim cookiePath As String = _
anonymousIdentificationSection.CookiePath
Console.WriteLine("Cookie path: {0}", cookiePath)
Hinweise
Die CookiePath Eigenschaft gibt an, wo sich das Authentifizierungscookies befindet und zusammen mit dem Authentifizierungscookies selbst übertragen wird.