HttpResponse.Redirect メソッド

定義

オーバーロード

Redirect(String)

クライアントへの一時的なリダイレクト応答 (HTTP 302) を返します。

Redirect(String, Boolean)

クライアントへのリダイレクト応答 (HTTP 301 または HTTP 302) を返します。

Redirect(String)

ソース:
HttpResponse.cs
ソース:
HttpResponse.cs

クライアントへの一時的なリダイレクト応答 (HTTP 302) を返します。

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

パラメーター

location
String

クライアントのリダイレクト先の URL。 これは、ASCII 文字のみが許可されている http ヘッダーで使用するために適切にエンコードする必要があります。

適用対象

Redirect(String, Boolean)

ソース:
HttpResponse.cs
ソース:
HttpResponse.cs

クライアントへのリダイレクト応答 (HTTP 301 または HTTP 302) を返します。

public:
 abstract void Redirect(System::String ^ location, bool permanent);
public abstract void Redirect (string location, bool permanent);
abstract member Redirect : string * bool -> unit
Public MustOverride Sub Redirect (location As String, permanent As Boolean)

パラメーター

location
String

クライアントのリダイレクト先の URL。 これは、ASCII 文字のみが許可されている http ヘッダーで使用するために適切にエンコードする必要があります。

permanent
Boolean

True リダイレクトが永続的である場合は (301)、それ以外の場合 false は (302)。

適用対象