다음을 통해 공유


CustomError.Redirect 속성

정의

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

public:
 property System::String ^ Redirect { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("redirect", IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Redirect { get; set; }
[<System.Configuration.ConfigurationProperty("redirect", IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Redirect : string with get, set
Public Property Redirect As String

속성 값

오류가 발생할 때 애플리케이션이 리디렉션되는 URL입니다.

특성

예제

다음 코드 예제에서는 리디렉션 URL을 사용하는 방법을 보여줍니다. 컬렉션을 가져오는 방법을 알아보려면 클래스 항목의 CustomError 코드 예제를 참조하세요.

// Get first errorr Redirect.
CustomError currentError0 =
    customErrorsCollection[0];
string currentRedirect =
    currentError0.Redirect;

// Set first error Redirect.
currentError0.Redirect =
    "customError404.htm";
' Get first errorr Redirect.
  Dim currentError0 As CustomError = _
  customErrorsCollection(0)
  Dim currentRedirect As String = _
  currentError0.Redirect

' Set first error Redirect.
currentError0.Redirect = "customError404.htm"

설명

이 속성은 Redirect 특정 오류와 연결된 사용자 지정 페이지의 URL을 식별합니다.

적용 대상