Microsoft.AspNetCore.Mvc.RazorPages 命名空間

提供 Razor Pages 執行時間支援所需的類型。

類別

CompiledPageActionDescriptor

PageActionDescriptor 編譯 Razor 頁面的 。

NonHandlerAttribute

指定目標方法不是頁面處理常式方法。

Page

Razor 頁面的基類。

PageActionDescriptor

描述頁面動作。

PageBase

Razor 頁面的基類。

PageContext

與 Razor 頁面目前要求相關聯的內容。

PageContextAttribute

指定建立模型實例時,應該使用目前的 PageContext 設定 Razor Page 模型屬性。 屬性必須有公用集合方法。

PageModel

代表 Page 的抽象類別

PageResult

呈現 ActionResult Razor 頁面的 。

RazorPagesOptions

提供 Razor 頁面的組態。

介面

IPageActivatorProvider

提供建立 Razor 頁面的方法。

IPageFactoryProvider

提供建立及處置 Razor 頁面的方法。

IPageModelActivatorProvider

提供建立 Razor 頁面模型的方法。

IPageModelFactoryProvider

提供建立和處置 Razor 頁面模型的方法。

備註

如需 Razor 頁面的詳細資訊,請參閱 Razor 頁面