IComNativeDescriptorHandler.GetEvents Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru