IComNativeDescriptorHandler.GetEvents Metoda

Definicja

Pobiera zdarzenia dla określonego składnika.

Przeciążenia

GetEvents(Object)

Pobiera zdarzenia dla określonego składnika.

GetEvents(Object, Attribute[])

Pobiera zdarzenia z określonymi atrybutami dla określonego składnika.

GetEvents(Object)

Pobiera zdarzenia dla określonego składnika.

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

Parametry

component
Object

Składnik do pobierania zdarzeń.

Zwraca

Kolekcja deskryptorów zdarzeń dla elementu component.

Uwagi

Uwaga

Ten interfejs API jest teraz przestarzały. Nie przestarzałą alternatywą jest ComObjectType.

Dotyczy

GetEvents(Object, Attribute[])

Pobiera zdarzenia z określonymi atrybutami dla określonego składnika.

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

Parametry

component
Object

Składnik do pobierania zdarzeń.

attributes
Attribute[]

Atrybuty używane do filtrowania zdarzeń.

Zwraca

Kolekcja deskryptorów zdarzeń dla elementu component.

Uwagi

Uwaga

Ten interfejs API jest teraz przestarzały. Nie przestarzałą alternatywą jest ComObjectType.

Dotyczy