HttpResponseWrapper.Redirect 메서드

정의

요청을 다른 URL로 리디렉션합니다.

오버로드

Redirect(String)

요청을 지정된 URL로 리디렉션합니다.

Redirect(String, Boolean)

요청을 지정된 URL로 리디렉션하고 현재 프로세스의 실행을 종료해야 하는지 여부를 지정합니다.

Redirect(String)

요청을 지정된 URL로 리디렉션합니다.

public:
 override void Redirect(System::String ^ url);
public override void Redirect (string url);
override this.Redirect : string -> unit
Public Overrides Sub Redirect (url As String)

매개 변수

url
String

대상 위치입니다.

예외

HTTP 헤더를 보낸 다음에 리디렉션하려는 경우

적용 대상

Redirect(String, Boolean)

요청을 지정된 URL로 리디렉션하고 현재 프로세스의 실행을 종료해야 하는지 여부를 지정합니다.

public:
 override void Redirect(System::String ^ url, bool endResponse);
public override void Redirect (string url, bool endResponse);
override this.Redirect : string * bool -> unit
Public Overrides Sub Redirect (url As String, endResponse As Boolean)

매개 변수

url
String

대상 위치입니다.

endResponse
Boolean

현재 프로세스를 종료하려면true 입니다.

예외

url이(가) null인 경우

url에 줄 바꿈 문자가 포함되어 있는 경우

HTTP 헤더를 보낸 다음에 리디렉션하려는 경우

요청이 콜백 결과인 경우

적용 대상