Bewerken

Delen via


IComNativeDescriptorHandler.GetEvents Method

Definition

Gets the events for the specified component.

Overloads

GetEvents(Object)

Gets the events for the specified component.

GetEvents(Object, Attribute[])

Gets the events with the specified attributes for the specified component.

GetEvents(Object)

Gets the events for the specified component.

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

Parameters

component
Object

The component to get events for.

Returns

A collection of event descriptors for component.

Remarks

Note

This API is now obsolete. The non-obsolete alternative is ComObjectType.

Applies to

GetEvents(Object, Attribute[])

Gets the events with the specified attributes for the specified component.

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

Parameters

component
Object

The component to get events for.

attributes
Attribute[]

The attributes used to filter events.

Returns

A collection of event descriptors for component.

Remarks

Note

This API is now obsolete. The non-obsolete alternative is ComObjectType.

Applies to