Share via


IComNativeDescriptorHandler.GetEvents 方法

定义

获取指定组件的事件。

重载

GetEvents(Object)

获取指定组件的事件。

GetEvents(Object, Attribute[])

获取指定组件的具有指定特性的事件。

GetEvents(Object)

获取指定组件的事件。

public:
 System::ComponentModel::EventDescriptorCollection ^ GetEvents(System::Object ^ component);
public System.ComponentModel.EventDescriptorCollection GetEvents (object component);
abstract member GetEvents : obj -> System.ComponentModel.EventDescriptorCollection
Public Function GetEvents (component As Object) As EventDescriptorCollection

参数

component
Object

要获取其事件的组件。

返回

component 的事件描述符的集合。

注解

注意

此 API 现已过时。 未过时的替代项为 ComObjectType

适用于

GetEvents(Object, Attribute[])

获取指定组件的具有指定特性的事件。

public:
 System::ComponentModel::EventDescriptorCollection ^ GetEvents(System::Object ^ component, cli::array <Attribute ^> ^ attributes);
public System.ComponentModel.EventDescriptorCollection GetEvents (object component, Attribute[] attributes);
public System.ComponentModel.EventDescriptorCollection GetEvents (object component, Attribute[]? attributes);
abstract member GetEvents : obj * Attribute[] -> System.ComponentModel.EventDescriptorCollection
Public Function GetEvents (component As Object, attributes As Attribute()) As EventDescriptorCollection

参数

component
Object

要获取其事件的组件。

attributes
Attribute[]

用于筛选事件的特性。

返回

component 的事件描述符的集合。

注解

注意

此 API 现已过时。 未过时的替代项为 ComObjectType

适用于