PageResult 類別
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
呈現 ActionResult Razor 頁面的 。
public ref class PageResult : Microsoft::AspNetCore::Mvc::ActionResult
C#
public class PageResult : Microsoft.AspNetCore.Mvc.ActionResult
type PageResult = class
inherit ActionResult
Public Class PageResult
Inherits ActionResult
- 繼承
Page |
呈現 ActionResult Razor 頁面的 。 |
Content |
取得或設定回應的 Content-Type 標頭。 |
Model |
取得頁面模型。 |
Page |
取得或設定 PageBase 要執行的 。 |
Status |
取得或設定 HTTP 狀態碼。 |
View |
取得或設定 ViewDataDictionary 要執行之頁面的 。 |
Execute |
同步執行動作方法的結果作業。 MVC 會呼叫這個方法來處理動作方法的結果。 (繼承來源 ActionResult) |
Execute |
要求 的服務 Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageResultExecutor.ExecuteAsync(PageContext,PageResult) 在指定的 |
產品 | 版本 |
---|---|
ASP.NET Core | 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |