共用方式為


EventManager.GetRoutedEventsForOwner(Type) 方法

定義

針對已利用提供的擁有人型別註冊的事件,尋找所有路由事件識別項。

public:
 static cli::array <System::Windows::RoutedEvent ^> ^ GetRoutedEventsForOwner(Type ^ ownerType);
public static System.Windows.RoutedEvent[] GetRoutedEventsForOwner (Type ownerType);
static member GetRoutedEventsForOwner : Type -> System.Windows.RoutedEvent[]
Public Shared Function GetRoutedEventsForOwner (ownerType As Type) As RoutedEvent()

參數

ownerType
Type

要做為搜尋起點的型別。 基底類別 (Base Class) 會併入搜尋中。

傳回

RoutedEvent[]

如果找到任何相符合項目,則為相符路由事件識別項的陣列,否則為 null

適用於