共用方式為


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 命名空間