HttpResponseBase.RedirectPermanent 메서드

정의

요청한 URL에서 지정한 URL로의 영구 리디렉션을 수행합니다.

오버로드

RedirectPermanent(String, Boolean)

요청한 URL에서 지정한 URL로의 영구 리디렉션을 수행하고, 응답을 완료하는 옵션을 제공합니다.

RedirectPermanent(String)

요청한 URL에서 지정한 URL로의 영구 리디렉션을 수행합니다.

RedirectPermanent(String, Boolean)

요청한 URL에서 지정한 URL로의 영구 리디렉션을 수행하고, 응답을 완료하는 옵션을 제공합니다.

public:
 virtual void RedirectPermanent(System::String ^ url, bool endResponse);
public virtual void RedirectPermanent (string url, bool endResponse);
abstract member RedirectPermanent : string * bool -> unit
override this.RedirectPermanent : string * bool -> unit
Public Overridable Sub RedirectPermanent (url As String, endResponse As Boolean)

매개 변수

url
String

요청을 리디렉션할 위치입니다.

endResponse
Boolean

응답을 종료하려면 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

예외

설명

오버로드 메서드는 RedirectPermanent(String, Boolean) 응답에 301 HTTP 상태 코드를 제공하고 요청을 리디렉션할 URL을 포함합니다. 또한 이 오버로드는 리디렉션이 수행된 후 응답을 종료할지 또는 완료할지를 지정하는 옵션을 제공합니다. 301 HTTP 상태 코드는 HTTP 응답의 표준 코드입니다. 영구 리디렉션이 있음을 나타내며 리디렉션 위치를 제공합니다.

적용 대상

RedirectPermanent(String)

요청한 URL에서 지정한 URL로의 영구 리디렉션을 수행합니다.

public:
 virtual void RedirectPermanent(System::String ^ url);
public virtual void RedirectPermanent (string url);
abstract member RedirectPermanent : string -> unit
override this.RedirectPermanent : string -> unit
Public Overridable Sub RedirectPermanent (url As String)

매개 변수

url
String

요청을 리디렉션할 위치입니다.

예외

설명

RedirectPermanent(String) 메서드 오버로드는 응답에 301 HTTP 상태 코드를 제공하고 요청을 리디렉션할 URL을 포함합니다. 301 HTTP 상태 코드는 HTTP 응답의 표준 코드입니다. 영구 리디렉션이 있음을 나타내며 리디렉션 위치를 제공합니다.

메서드를 RedirectPermanent(String) 호출하면 나머지 응답이 종료됩니다.

적용 대상