FormsAuthenticationConfiguration.Path Eigenschap

Definitie

Hiermee haalt u het cookiepad op of stelt u het in.

public:
 property System::String ^ Path { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("path", DefaultValue="/")]
[System.Configuration.StringValidator(MinLength=1)]
public string Path { get; set; }
[<System.Configuration.ConfigurationProperty("path", DefaultValue="/")>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Path : string with get, set
Public Property Path As String

Waarde van eigenschap

Het pad van de HTTP-cookie die moet worden gebruikt voor verificatie. De standaardwaarde is een slash (/), die de hoofdmap van de webtoepassing vertegenwoordigt.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u toegang hebt tot de Path eigenschap. Raadpleeg het codevoorbeeld in het FormsAuthenticationConfiguration klasonderwerp voor meer informatie over het ophalen van de sectie.

// Get the current Path.
string currentPath = formsAuthentication.Path;
// Set the Path property.
formsAuthentication.Path = "newPath";
' Get the current Path.
Dim currentPath As String = formsAuthentication.Path
' Set the Path property.
formsAuthentication.Path = "newPath"

Opmerkingen

De Path eigenschap geeft aan waar de verificatiecooky zich bevindt en wordt verzonden samen met de verificatiecooky zelf.

Van toepassing op

Zie ook