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

適用於