DataConnectionProperties.ICustomTypeDescriptor.GetEvents Method (array<Attribute )
Retrieves the events for this instance of a component using the specified attribute array as a filter.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Private Function GetEvents ( _
attributes As Attribute() _
) As EventDescriptorCollection Implements ICustomTypeDescriptor.GetEvents
EventDescriptorCollection ICustomTypeDescriptor.GetEvents(
Attribute[] attributes
)
private:
virtual EventDescriptorCollection^ GetEvents(
array<Attribute^>^ attributes
) sealed = ICustomTypeDescriptor::GetEvents
private abstract GetEvents :
attributes:Attribute[] -> EventDescriptorCollection
private override GetEvents :
attributes:Attribute[] -> EventDescriptorCollection
JScript does not support explicit interface implementations.
Parameters
attributes
Type: array<System.Attribute[]An array of type Attribute that is used as a filter
Return Value
Type: System.ComponentModel.EventDescriptorCollection
Returns an EventDescriptorCollection representing the filtered events for the specified component instance.
Implements
ICustomTypeDescriptor.GetEvents(array<Attribute[])
Remarks
This method provides an implementation of the GetEvents method. For more information see the GetEvents(System.Attribute[]) method in the .NET Framework class library.
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.