ControllerBase.RedirectToPagePermanent 方法

定義

多載

RedirectToPagePermanent(String, String, Object, String)

使用指定的 和 ,將 (Status301MovedPermanently) 重新導向至指定的 pageNamerouteValuesfragment

RedirectToPagePermanent(String, String, String)

使用指定的 ,將 Status301MovedPermanently () 重新導向至指定的 pageNamefragment

RedirectToPagePermanent(String, Object)

使用指定的 ,將 Status301MovedPermanently () 重新導向至指定的 pageNamerouteValues

RedirectToPagePermanent(String)

將 (Status301MovedPermanently) 重新導向至指定的 pageName

RedirectToPagePermanent(String, String)

使用指定的 ,將 Status301MovedPermanently () 重新導向至指定的 pageNamepageHandler

RedirectToPagePermanent(String, String, Object, String)

使用指定的 和 ,將 (Status301MovedPermanently) 重新導向至指定的 pageNamerouteValuesfragment

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPagePermanent(System::String ^ pageName, System::String ^ pageHandler, System::Object ^ routeValues, System::String ^ fragment);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent (string pageName, string pageHandler, object routeValues, string fragment);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent (string pageName, string? pageHandler, object? routeValues, string? fragment);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member RedirectToPagePermanent : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
override this.RedirectToPagePermanent : string * string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Overridable Function RedirectToPagePermanent (pageName As String, pageHandler As String, routeValues As Object, fragment As String) As RedirectToPageResult

參數

pageName
String

頁面名稱。

pageHandler
String

要重新導向的頁面處理常式。

routeValues
Object

路由的參數。

fragment
String

要加入至 URL 的片段。

傳回

RedirectToPageResult具有 Permanent set 的 。

屬性

適用於

RedirectToPagePermanent(String, String, String)

使用指定的 ,將 Status301MovedPermanently () 重新導向至指定的 pageNamefragment

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPagePermanent(System::String ^ pageName, System::String ^ pageHandler, System::String ^ fragment);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent (string pageName, string pageHandler, string fragment);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent (string pageName, string? pageHandler, string? fragment);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member RedirectToPagePermanent : string * string * string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
override this.RedirectToPagePermanent : string * string * string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Overridable Function RedirectToPagePermanent (pageName As String, pageHandler As String, fragment As String) As RedirectToPageResult

參數

pageName
String

頁面名稱。

pageHandler
String

要重新導向的頁面處理常式。

fragment
String

要加入至 URL 的片段。

傳回

RedirectToPageResult具有 Permanent set 的 。

屬性

適用於

RedirectToPagePermanent(String, Object)

使用指定的 ,將 Status301MovedPermanently () 重新導向至指定的 pageNamerouteValues

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPagePermanent(System::String ^ pageName, System::Object ^ routeValues);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent (string pageName, object routeValues);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent (string pageName, object? routeValues);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member RedirectToPagePermanent : string * obj -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
override this.RedirectToPagePermanent : string * obj -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Overridable Function RedirectToPagePermanent (pageName As String, routeValues As Object) As RedirectToPageResult

參數

pageName
String

頁面名稱。

routeValues
Object

路由的參數。

傳回

RedirectToPageResult具有 Permanent set 的 。

屬性

適用於

RedirectToPagePermanent(String)

將 (Status301MovedPermanently) 重新導向至指定的 pageName

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPagePermanent(System::String ^ pageName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent (string pageName);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member RedirectToPagePermanent : string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
override this.RedirectToPagePermanent : string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Overridable Function RedirectToPagePermanent (pageName As String) As RedirectToPageResult

參數

pageName
String

頁面名稱。

傳回

RedirectToPageResult具有 Permanent set 的 。

屬性

適用於

RedirectToPagePermanent(String, String)

使用指定的 ,將 Status301MovedPermanently () 重新導向至指定的 pageNamepageHandler

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPagePermanent(System::String ^ pageName, System::String ^ pageHandler);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent (string pageName, string pageHandler);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPagePermanent (string pageName, string? pageHandler);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member RedirectToPagePermanent : string * string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
override this.RedirectToPagePermanent : string * string -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Overridable Function RedirectToPagePermanent (pageName As String, pageHandler As String) As RedirectToPageResult

參數

pageName
String

頁面名稱。

pageHandler
String

要重新導向的頁面處理常式。

傳回

RedirectToPageResult具有 Permanent set 的 。

屬性

適用於