PassportAuthentication.RedirectUrl Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
İ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
İ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.