PassportAuthentication.RedirectUrl Vlastnost

Definice

Získá nebo nastaví adresu URL, na kterou se požadavek přesměruje.

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

Hodnota vlastnosti

String

Adresa URL stránky, na kterou se požadavek přesměruje.

Atributy

Příklady

Následující příklad kódu ukazuje, jak použít RedirectUrl vlastnost.


// 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

Poznámky

RedirectUrl Určuje adresu URL stránky, na kterou se požadavek musí přesměrovat, pokud je vyžadováno ověření passportem a uživatel se nepřihlásil pomocí ověřování Passportem.

Platí pro