ActionDescriptor 類別

定義

描述 MVC 動作。

public ref class ActionDescriptor
public class ActionDescriptor
type ActionDescriptor = class
Public Class ActionDescriptor
繼承
ActionDescriptor
衍生

建構函式

ActionDescriptor()

初始化 ActionDescriptor 的新執行個體。

屬性

ActionConstraints

此動作的條件約束集。 必須全部滿足,才能選取動作。

AttributeRouteInfo

取得或設定 AttributeRouteInfo

BoundProperties

屬於模型系結的屬性集。

DisplayName

此動作的易記名稱。

EndpointMetadata

取得或設定此動作的端點中繼資料。 此 API 適用于基礎結構,不應由應用程式程式碼使用。

FilterDescriptors

與此動作相關聯的篩選集。

Id

取得可唯一識別動作的識別碼。

Parameters

與此動作相關聯的參數集。

Properties

儲存與 相關聯的 ActionDescriptor 任意中繼資料屬性。

RouteValues

取得或設定路由值的集合,這些值必須由路由提供,才能選取動作。

擴充方法

GetProperty<T>(ActionDescriptor)

使用 提供的 值做為索引鍵, Properties 從集合取得屬性的值 T

SetProperty<T>(ActionDescriptor, T)

使用 提供的 值做為索引鍵, Properties 設定集合中屬性的值 T

適用於