IComNativeDescriptorHandler.GetEvents Method
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.
GetEvents(Object) |
Gets the events for the specified component. |
GetEvents(Object, Attribute[]) |
Gets the events with the specified attributes for the specified component. |
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
Anteckning
This API is now obsolete. The non-obsolete alternative is ComObjectType.
Applies to
.NET 10 och andra versioner
Produkt | Versioner |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
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
Anteckning
This API is now obsolete. The non-obsolete alternative is ComObjectType.
Applies to
.NET 10 och andra versioner
Produkt | Versioner |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Feedback om .NET
.NET är ett öppen källkod projekt. Välj en länk för att ge feedback: