FormsAuthenticationConfiguration.DefaultUrl Eigenschap

Definitie

Hiermee haalt u de standaard-URL op of stelt u deze in.

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

Waarde van eigenschap

De URL waarnaar de aanvraag moet worden omgeleid na verificatie. De standaardwaarde is default.aspx.

Kenmerken

Voorbeelden

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

// Get current DefaultUrl.
string currentDefaultUrl =
    formsAuthentication.DefaultUrl;

// Set current DefaultUrl.
formsAuthentication.DefaultUrl = "newDefaultUrl";
' Get current DefaultUrl.
Dim currentDefaultUrl As String =
formsAuthentication.DefaultUrl

' Set current DefaultUrl.
formsAuthentication.DefaultUrl = "newDefaultUrl"

Opmerkingen

Deze DefaultUrl wordt gebruikt als de gebruiker de aanmeldingspagina rechtstreeks opent of als er geen retour-URL wordt opgegeven.

Van toepassing op