RoutedEvent.OwnerType 屬性

定義

取得路由事件的註冊擁有人型別。

public:
 property Type ^ OwnerType { Type ^ get(); };
public Type OwnerType { get; }
member this.OwnerType : Type
Public ReadOnly Property OwnerType As Type

屬性值

路由事件的擁有人型別。

備註

此類型可以是任何物件類型,不一定限於 DependencyObject 。 如果已新增擁有者的路由事件,此屬性會傳回第一個宣告的擁有者。

這個屬性的值源自 RegisterRoutedEvent 定義 RoutedEvent 的方法。 具體而言,的值 OwnerTypeownerType 傳遞至 RegisterRoutedEvent 的參數值。

適用於

另請參閱