FormsAuthenticationConfiguration.Path Eigenschap
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
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.