ControllerDescriptor 類別

定義

封裝描述控制項的資訊,例如其名稱、型別和動作。

public abstract class ControllerDescriptor : System.Reflection.ICustomAttributeProvider
type ControllerDescriptor = class
    interface ICustomAttributeProvider
Public MustInherit Class ControllerDescriptor
Implements ICustomAttributeProvider
繼承
ControllerDescriptor
衍生
實作

建構函式

ControllerDescriptor()

初始化 ControllerDescriptor 類別的新執行個體。

屬性

ControllerName

取得控制器的名稱。

ControllerType

取得控制器的型別。

UniqueId

在衍生類別中實作時,使用延遲初始設定取得控制器描述元的唯一 ID。

方法

FindAction(ControllerContext, String)

使用指定的名稱和控制器內容,尋找動作方法。

GetCanonicalActions()

擷取控制器中的動作方法描述元清單。

GetCustomAttributes(Boolean)

擷取針對此成員定義的自訂屬性,但不包括具名屬性。

GetCustomAttributes(Type, Boolean)

擷取針對此成員定義之指定型別的自訂屬性,但不包括具名屬性。

GetFilterAttributes(Boolean)

取得篩選條件屬性。

IsDefined(Type, Boolean)

擷取值,這個值表示是否已為此成員定義指定之自訂屬性的一個或多個執行個體。

適用於