PageModel.RedirectToPage 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RedirectToPage() |
將 (Status302Found) 重新導向至目前的頁面。 |
RedirectToPage(Object) |
使用指定的 |
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()
- 來源:
- PageModel.cs
- 來源:
- PageModel.cs
- 來源:
- 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)
- 來源:
- PageModel.cs
- 來源:
- PageModel.cs
- 來源:
- PageModel.cs
使用指定的 routeValues
,將 (Status302Found) 重新導向至目前頁面。
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)
- 來源:
- PageModel.cs
- 來源:
- PageModel.cs
- 來源:
- 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)
- 來源:
- PageModel.cs
- 來源:
- PageModel.cs
- 來源:
- 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)
- 來源:
- PageModel.cs
- 來源:
- PageModel.cs
- 來源:
- 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)
- 來源:
- PageModel.cs
- 來源:
- PageModel.cs
- 來源:
- 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)
- 來源:
- PageModel.cs
- 來源:
- PageModel.cs
- 來源:
- 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)
- 來源:
- PageModel.cs
- 來源:
- PageModel.cs
- 來源:
- 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 的片段。