CompiledPageActionDescriptor 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
已 PageActionDescriptor 编译的 Razor 页的 。
public ref class CompiledPageActionDescriptor : Microsoft::AspNetCore::Mvc::RazorPages::PageActionDescriptor
public class CompiledPageActionDescriptor : Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor
type CompiledPageActionDescriptor = class
inherit PageActionDescriptor
Public Class CompiledPageActionDescriptor
Inherits PageActionDescriptor
- 继承
构造函数
| CompiledPageActionDescriptor() |
初始化空的 CompiledPageActionDescriptor。 |
| CompiledPageActionDescriptor(PageActionDescriptor) |
从指定的 |
属性
| ActionConstraints |
此操作的约束集。 必须满足所有条件才能选择操作。 (继承自 ActionDescriptor) |
| AreaName |
获取或设置此页面的区域名称。
对于非区域页面,此值将为 |
| AttributeRouteInfo |
获取或设置 AttributeRouteInfo。 (继承自 ActionDescriptor) |
| BoundProperties |
模型绑定的属性集。 (继承自 ActionDescriptor) |
| DeclaredModelTypeInfo |
获取或设置页面模型的声明 TypeInfo 模型。 通常,这是 TypeInfo 由 razor 页中的 指令指定的 @model 类型。 |
| DisplayName |
此操作的友好名称。 (继承自 PageActionDescriptor) |
| Endpoint |
获取或设置此页的关联 Endpoint 。 |
| EndpointMetadata |
获取或设置此操作的终结点元数据。 此 API 适用于基础结构,不应由应用程序代码使用。 (继承自 ActionDescriptor) |
| FilterDescriptors |
与此操作关联的筛选器集。 (继承自 ActionDescriptor) |
| HandlerMethods |
获取页面的处理程序方法列表。 |
| HandlerTypeInfo |
获取或设置 TypeInfo 为页面定义处理程序方法的 类型的 。 如果页面未定义显式模型类型,则可以与 PageTypeInfo 和 ModelTypeInfo 相同。 |
| Id |
获取唯一标识操作的 ID。 (继承自 ActionDescriptor) |
| ModelTypeInfo |
获取或设置 razor 页的模型的运行时模型 TypeInfo 。 这是 TypeInfo 在运行时用于实例化和填充页面的模型属性的 。 |
| PageTypeInfo |
获取或设置 TypeInfo 页面的 。 |
| Parameters |
与此操作关联的参数集。 (继承自 ActionDescriptor) |
| Properties |
存储与 ActionDescriptor关联的任意元数据属性。 (继承自 ActionDescriptor) |
| RelativePath |
获取或设置页面的应用程序根相对路径。 (继承自 PageActionDescriptor) |
| RouteValues |
获取或设置路由值的集合,这些值必须由路由提供才能选择操作。 (继承自 ActionDescriptor) |
| ViewEnginePath |
获取或设置相对于页面发现的基路径的路径。
此值是没有扩展名的文件的路径,相对于页面根目录。
例如, ViewEnginePath 文件 /Pages/Catalog/Antiques.cshtml 的 为
在区域中,此值是不带扩展名的文件的路径,相对于指定区域的 pages 根目录。
例如, ViewEnginePath 文件 Areas/Identity/Pages/Manage/Accounts.cshtml 的 为 |
扩展方法
| GetProperty<T>(ActionDescriptor) |
使用提供的 值作为键,从 Properties 集合中获取属性的值 |
| SetProperty<T>(ActionDescriptor, T) |
使用提供的 值作为键设置集合中 Properties 属性的值 |