FormsAuthenticationConfiguration.LoginUrl Eigenschap

Definitie

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.

Van toepassing op

Zie ook