ResponseExtensions.Redirect(HttpResponse, String, Boolean, Boolean) 메서드

정의

클라이언트에 대한 리디렉션 응답(HTTP 301, HTTP 302, HTTP 307 또는 HTTP 308)을 반환합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static void Redirect(Microsoft::AspNetCore::Http::HttpResponse ^ response, System::String ^ location, bool permanent, bool preserveMethod);
public static void Redirect (this Microsoft.AspNetCore.Http.HttpResponse response, string location, bool permanent, bool preserveMethod);
static member Redirect : Microsoft.AspNetCore.Http.HttpResponse * string * bool * bool -> unit
<Extension()>
Public Sub Redirect (response As HttpResponse, location As String, permanent As Boolean, preserveMethod As Boolean)

매개 변수

response
HttpResponse

리디렉션할 입니다 HttpResponse .

location
String

클라이언트를 리디렉션할 URL입니다. ASCII 문자만 허용되는 http 헤더에서 사용하도록 올바르게 인코딩되어야 합니다.

permanent
Boolean

True 리디렉션이 영구(301 또는 308)이면 이고, 그렇지 않으면 false (302 또는 307)입니다.

preserveMethod
Boolean

True 리디렉션이 메서드와 본문(308 또는 307)을 다시 사용해야 하는 경우 이고, 그렇지 않으면 false (301 또는 302)

적용 대상