다음을 통해 공유


FormsAuthenticationConfiguration.LoginUrl 속성

정의

요청 리디렉션 URL을 가져오거나 설정합니다.

public:
 property System::String ^ LoginUrl { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("loginUrl", DefaultValue="login.aspx")]
[System.Configuration.StringValidator(MinLength=1)]
public string LoginUrl { get; set; }
[<System.Configuration.ConfigurationProperty("loginUrl", DefaultValue="login.aspx")>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.LoginUrl : string with get, set
Public Property LoginUrl As String

속성 값

사용자 인증이 실패할 경우 요청을 리디렉션할 URL입니다. 기본값은 login.aspx입니다.

특성

예제

다음 코드 예제에 액세스 하는 방법을 보여 줍니다는 LoginUrl합니다. 코드 예제에서는 참조는 FormsAuthenticationConfiguration 클래스 항목의 섹션을 가져오는 방법을 알아봅니다.

// Get the current LoginUrl.
string currentLoginUrl = formsAuthentication.LoginUrl;

// Set the LoginUrl. 
formsAuthentication.LoginUrl = "newLoginUrl";
' Get the current LoginUrl.
  Dim currentLoginUrl As String = _
  formsAuthentication.LoginUrl

' Set the LoginUrl. 
formsAuthentication.LoginUrl = "newLoginUrl"

설명

LoginUrl 속성에 대 한 요청이 유효한 인증 쿠키가 없는 경우 또는 사용자가 인증 되지 않은 경우 리디렉션 URL을 지정 합니다.

적용 대상

추가 정보