FormsAuthenticationConfiguration.LoginUrl 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 de omleidings-URL voor de aanvraag op of stelt u deze in.
public:
property System::String ^ LoginUrl { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("loginUrl", DefaultValue="login.aspx")]
[System.Configuration.StringValidator(MinLength=1)]
public string LoginUrl { get; set; }
[<System.Configuration.ConfigurationProperty("loginUrl", DefaultValue="login.aspx")>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.LoginUrl : string with get, set
Public Property LoginUrl As String
Waarde van eigenschap
De URL waarnaar de aanvraag wordt omgeleid wanneer de gebruiker niet is geverifieerd. De standaardwaarde is login.aspx.
- Kenmerken
Voorbeelden
In het volgende codevoorbeeld ziet u hoe u toegang hebt tot de LoginUrl. Raadpleeg het codevoorbeeld in het FormsAuthenticationConfiguration klasonderwerp voor meer informatie over het ophalen van de sectie.
// Get the current LoginUrl.
string currentLoginUrl = formsAuthentication.LoginUrl;
// Set the LoginUrl.
formsAuthentication.LoginUrl = "newLoginUrl";
' Get the current LoginUrl.
Dim currentLoginUrl As String =
formsAuthentication.LoginUrl
' Set the LoginUrl.
formsAuthentication.LoginUrl = "newLoginUrl"
Opmerkingen
De LoginUrl eigenschap geeft de omleidings-URL voor de aanvraag op wanneer de gebruiker niet is geverifieerd of wanneer er geen geldige verificatiecookie bestaat.