PageModel.RedirectToPage 方法

定义

重载

RedirectToPage()

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

RedirectToPage(Object)

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

RedirectToPage(String)

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

RedirectToPage(String, Object)

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

RedirectToPage(String, String)

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

RedirectToPage(String, String, Object)

使用指定的 和 将 (Status302Found) 重定向到指定的 pageNamepageHandlerrouteValues

RedirectToPage(String, String, String)

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

RedirectToPage(String, String, Object, String)

使用指定的 和 将 (Status302Found) 重定向到指定的 pageNamerouteValuesfragment

RedirectToPage()

Source:
PageModel.cs
Source:
PageModel.cs
Source:
PageModel.cs

将 (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

适用于

RedirectToPage(Object)

Source:
PageModel.cs
Source:
PageModel.cs
Source:
PageModel.cs

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

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPage(System::Object ^ routeValues);
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (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

适用于

RedirectToPage(String)

Source:
PageModel.cs
Source:
PageModel.cs
Source:
PageModel.cs

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

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPage(System::String ^ pageName);
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (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

适用于

RedirectToPage(String, Object)

Source:
PageModel.cs
Source:
PageModel.cs
Source:
PageModel.cs

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

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPage(System::String ^ pageName, System::Object ^ routeValues);
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (string pageName, 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

适用于

RedirectToPage(String, String)

Source:
PageModel.cs
Source:
PageModel.cs
Source:
PageModel.cs

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

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToPageResult ^ RedirectToPage(System::String ^ pageName, System::String ^ pageHandler);
public virtual Microsoft.AspNetCore.Mvc.RedirectToPageResult RedirectToPage (string pageName, 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

适用于

RedirectToPage(String, String, Object)

Source:
PageModel.cs
Source:
PageModel.cs
Source:
PageModel.cs

使用指定的 和 将 (Status302Found) 重定向到指定的 pageNamepageHandlerrouteValues

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);
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

适用于

RedirectToPage(String, String, String)

Source:
PageModel.cs
Source:
PageModel.cs
Source:
PageModel.cs

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

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);
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

适用于

RedirectToPage(String, String, Object, String)

Source:
PageModel.cs
Source:
PageModel.cs
Source:
PageModel.cs

使用指定的 和 将 (Status302Found) 重定向到指定的 pageNamerouteValuesfragment

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);
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

适用于