Aracılığıyla paylaş


PassportAuthentication.RedirectUrl Özellik

Tanım

İsteğin yeniden yönlendirildiği URL'yi alır veya ayarlar.

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

Özellik Değeri

String

İsteğin yeniden yönlendirildiği sayfanın URL'si.

Öznitelikler

Örnekler

Aşağıdaki kod örneği özelliğinin RedirectUrl nasıl kullanılacağını gösterir.


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

Açıklamalar

, RedirectUrl Passport kimlik doğrulaması gerekiyorsa ve kullanıcı Passport kimlik doğrulaması kullanarak oturum açmadıysa isteğin yeniden yönlendirilmesi gereken sayfanın URL'sini belirtir.

Şunlara uygulanır