ICustomTypeDescriptor::GetEvents Method (array<Attribute>)
Returns the events for this instance of a component using the specified attribute array as a filter.
Assembly: System (in System.dll)
Parameters
- attributes
- Type: array<System::Attribute>
An array of type Attribute that is used as a filter.
Return Value
Type: System.ComponentModel::EventDescriptorCollectionAn EventDescriptorCollection that represents the filtered events for this component instance.
The events for this instance can differ from the set of events that the class provides. For example, if the component is site-based, the site can add or remove additional events.
If an Attribute is specified in the attributes array and the event does not have an instance of the class for that attribute, the returned array includes the event if the Attribute is the default event.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.