Share via


PassportAuthentication.RedirectUrl Propriété

Définition

Obtient ou définit l'URL vers laquelle la demande est redirigée.

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

Valeur de propriété

URL de la page vers laquelle la demande est redirigée.

Attributs

Exemples

L'exemple de code suivant montre comment utiliser la propriété RedirectUrl.


// Get the passport redirect URL
string redirectUrl = passport.RedirectUrl;

// Set passport redirect Url.
passport.RedirectUrl = "passportLogin.aspx";

if (!authenticationSection.SectionInformation.IsLocked)
  configuration.Save();
' Get the passport redirect URL
Dim redirectUrl As String = passport.RedirectUrl

' Set the passport redirect Url.
passport.RedirectUrl = "passportLogin.aspx"

If Not authenticationSection.SectionInformation.IsLocked Then
  configuration.Save()
End If

Remarques

Spécifie RedirectUrl l’URL de la page vers laquelle la demande doit être redirigée si l’authentification Passport est requise et que l’utilisateur ne s’est pas connecté à l’aide de l’authentification Passport.

S’applique à