Share via


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

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

See Also

Reference

DataConnectionProperties Class

GetEvents Overload

Microsoft.VisualStudio.Data Namespace