EventIdentifier.DeclaringType 属性

获取声明该事件的类型(如果该事件是在构造函数中设置的)。

命名空间:  Microsoft.Windows.Design.Metadata
程序集:  Microsoft.Windows.Design.Extensibility(在 Microsoft.Windows.Design.Extensibility.dll 中)

语法

声明
Public ReadOnly Property DeclaringType As Type
    Get
public Type DeclaringType { get; }
public:
property Type^ DeclaringType {
    Type^ get ();
}
member DeclaringType : Type
function get DeclaringType () : Type

属性值

类型:System.Type
一个声明该事件的类型;如果该事件标识符是使用 TypeIdentifier 创建的,则为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参见

参考

EventIdentifier 结构

Microsoft.Windows.Design.Metadata 命名空间