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

从其开始搜索的类型。 搜索中包含基类。

返回

RoutedEvent[]

如果找到任何匹配项,则返回匹配路由事件标识符的数组;否则返回 null

适用于