PageModel.RedirectToPage 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RedirectToPage() |
将 (Status302Found) 重定向到当前页。 |
RedirectToPage(Object) |
将 (Status302Found) 重定向到具有指定 |
RedirectToPage(String) |
将 (Status302Found) 重定向到指定的 |
RedirectToPage(String, Object) |
使用指定的 将 (Status302Found) 重定向到指定的 |
RedirectToPage(String, String) |
使用指定的 将 (Status302Found) 重定向到指定的 |
RedirectToPage(String, String, Object) |
使用指定的 和 将 (Status302Found) 重定向到指定的 |
RedirectToPage(String, String, String) |
使用指定的 将 (Status302Found) 重定向到指定的 |
RedirectToPage(String, String, Object, String) |
使用指定的 和 将 (Status302Found) 重定向到指定的 |
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
返回
适用于
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
路由的参数。
返回
适用于
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
页的名称。
返回
适用于
RedirectToPage(String, Object)
- Source:
- PageModel.cs
- Source:
- PageModel.cs
- Source:
- PageModel.cs
使用指定的 将 (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);
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
路由的参数。
返回
适用于
RedirectToPage(String, String)
- Source:
- PageModel.cs
- Source:
- PageModel.cs
- Source:
- PageModel.cs
使用指定的 将 (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);
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
要重定向到的页面处理程序。
返回
适用于
RedirectToPage(String, String, Object)
- Source:
- PageModel.cs
- Source:
- PageModel.cs
- Source:
- PageModel.cs
使用指定的 和 将 (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);
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
路由的参数。
返回
适用于
RedirectToPage(String, String, String)
- Source:
- PageModel.cs
- Source:
- PageModel.cs
- Source:
- PageModel.cs
使用指定的 将 (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);
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 的片段。
返回
适用于
RedirectToPage(String, String, Object, String)
- Source:
- PageModel.cs
- Source:
- PageModel.cs
- Source:
- PageModel.cs
使用指定的 和 将 (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);
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 的片段。