Share via


CustomErrorsSection.DefaultRedirect 속성

정의

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

public:
 property System::String ^ DefaultRedirect { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("defaultRedirect")]
public string DefaultRedirect { get; set; }
[<System.Configuration.ConfigurationProperty("defaultRedirect")>]
member this.DefaultRedirect : string with get, set
Public Property DefaultRedirect As String

속성 값

String

오류가 발생했을 때 애플리케이션을 리디렉션할 기본 URL입니다.

특성

예외

DefaultRedirect 속성은 null입니다. 이것이 기본값입니다.

예제

다음 코드 예제에서는 DefaultRedirect 속성을 사용하는 방법을 보여 줍니다.

코드 예제에서는 참조는 CustomErrorsSection 클래스 항목의 섹션을 가져오는 방법을 알아봅니다.

// Get the currentDefaultRedirect
string currentDefaultRedirect = 
    customErrorsSection.DefaultRedirect;
' Get the currentDefaultRedirect
  Dim currentDefaultRedirect As String = _
  customErrorsSection.DefaultRedirect

설명

경우는 DefaultRedirect 지정 하지 않으면 표준 오류가 대신 표시 됩니다. DefaultRedirect 일반 오류 페이지 사용자 지정 오류 페이지가 없는 있는 경우 활성화를 지정 합니다.

참고

URL은 절대 또는 상대 값을 수 있습니다. 지정 된 Web.config 파일을 기준으로 상대 URL이는 DefaultRedirect, 오류가 발생 한 웹 페이지에 없습니다. 상대 URL 물결표 (~)로 시작 애플리케이션의 루트 경로 상대적입니다.

적용 대상