PassportAuthentication.RedirectUrl Свойство

Определение

Получает или задает URL-адрес, на который перенаправляется запрос.

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

Значение свойства

URL-адрес страницы, на который перенаправляется запрос.

Атрибуты

Примеры

В следующем примере кода показано, как использовать свойство 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

Комментарии

Указывает RedirectUrl URL-адрес страницы, на которую должен быть перенаправлен запрос, если требуется проверка подлинности Passport и пользователь не выполнил вход с помощью проверки подлинности Passport.

Применяется к