ControllerActionDescriptor 类
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
控制器操作的描述符。
public ref class ControllerActionDescriptor : Microsoft::AspNetCore::Mvc::Abstractions::ActionDescriptor
C#
public class ControllerActionDescriptor : Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor
type ControllerActionDescriptor = class
inherit ActionDescriptor
Public Class ControllerActionDescriptor
Inherits ActionDescriptor
- 继承
Controller |
控制器操作的描述符。 |
Action |
此操作的约束集。 必须满足所有条件才能选择操作。 (继承自 ActionDescriptor) |
Action |
操作的名称。 |
Attribute |
获取或设置 AttributeRouteInfo。 (继承自 ActionDescriptor) |
Bound |
模型绑定的属性集。 (继承自 ActionDescriptor) |
Controller |
控制器的名称。 |
Controller |
TypeInfo控制器的 。 |
Display |
此操作的友好名称。 |
Endpoint |
获取或设置此操作的终结点元数据。 此 API 适用于基础结构,不应由应用程序代码使用。 (继承自 ActionDescriptor) |
Filter |
与此操作关联的筛选器集。 (继承自 ActionDescriptor) |
Id |
获取唯一标识操作的 ID。 (继承自 ActionDescriptor) |
Method |
|
Parameters |
与此操作关联的参数集。 (继承自 ActionDescriptor) |
Properties |
存储与 ActionDescriptor关联的任意元数据属性。 (继承自 ActionDescriptor) |
Route |
获取或设置路由值的集合,这些值必须由路由提供才能选择操作。 (继承自 ActionDescriptor) |
Get |
使用 提供的 值作为键,从 Properties 集合中获取属性的值 |
Set |
使用 提供的 值作为键设置集合中 Properties 属性的值 |
产品 | 版本 |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |