PageModel.RedirectToPage 方法

定义

重载

RedirectToPage()

将 (Status302Found) 重定向到当前页。

RedirectToPage(Object)

将 (Status302Found) 重定向到具有指定的的当前页 routeValues

RedirectToPage(String)

将) (重定向 Status302Found 到指定的 pageName

RedirectToPage(String, Object)

使用指定的将 () 重定向 Status302Found 到指定的 pageName routeValues

RedirectToPage(String, String)

使用指定的将 () 重定向 Status302Found 到指定的 pageName pageHandler

RedirectToPage(String, String, Object)

Status302Found pageName 使用指定的和将 () 重定向到指定的 pageHandler routeValues

RedirectToPage(String, String, String)

使用指定的将 () 重定向 Status302Found 到指定的 pageName fragment

RedirectToPage(String, String, Object, String)

Status302Found pageName 使用指定的和将 () 重定向到指定的 routeValues fragment

RedirectToPage()

将 (Status302Found) 重定向到当前页。

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPage();
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage ();
abstract member RedirectToPage : unit -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
override this.RedirectToPage : unit -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Overridable Function RedirectToPage () As RedirectToPageResult

返回

RedirectToPageResult

RedirectToPageResult

适用于

RedirectToPage(Object)

将 (Status302Found) 重定向到具有指定的的当前页 routeValues

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPage(System::Object ^ routeValues);
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (object routeValues);
abstract member RedirectToPage : obj -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
override this.RedirectToPage : obj -> Microsoft.AspNetCore.Mvc.RedirectToPageResult
Public Overridable Function RedirectToPage (routeValues As Object) As RedirectToPageResult

参数

routeValues
Object

路由的参数。

返回

RedirectToPageResult

RedirectToPageResult

适用于

RedirectToPage(String)

将) (重定向 Status302Found 到指定的 pageName

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

参数

pageName
String

页的名称。

返回

RedirectToPageResult

RedirectToPageResult

适用于

RedirectToPage(String, Object)

使用指定的将 () 重定向 Status302Found 到指定的 pageName routeValues

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

参数

pageName
String

页的名称。

routeValues
Object

路由的参数。

返回

RedirectToPageResult

RedirectToPageResult

适用于

RedirectToPage(String, String)

使用指定的将 () 重定向 Status302Found 到指定的 pageName pageHandler

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

参数

pageName
String

页的名称。

pageHandler
String

要重定向到的页处理程序。

返回

RedirectToPageResult

RedirectToPageResult

适用于

RedirectToPage(String, String, Object)

Status302Found pageName 使用指定的和将 () 重定向到指定的 pageHandler routeValues

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

参数

pageName
String

页的名称。

pageHandler
String

要重定向到的页处理程序。

routeValues
Object

路由的参数。

返回

RedirectToPageResult

RedirectToPageResult

适用于

RedirectToPage(String, String, String)

使用指定的将 () 重定向 Status302Found 到指定的 pageName fragment

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

参数

pageName
String

页的名称。

pageHandler
String

要重定向到的页处理程序。

fragment
String

要添加到 URL 中的片段。

返回

RedirectToPageResult

RedirectToPageResult

适用于

RedirectToPage(String, String, Object, String)

Status302Found pageName 使用指定的和将 () 重定向到指定的 routeValues fragment

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

参数

pageName
String

页的名称。

pageHandler
String

要重定向到的页处理程序。

routeValues
Object

路由的参数。

fragment
String

要添加到 URL 中的片段。

返回

RedirectToPageResult

RedirectToPageResult

适用于