DataConnectionProperties.ICustomTypeDescriptor.GetEvents Method

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

'宣言
Private Function GetEvents ( _
    attributes As Attribute() _
) As EventDescriptorCollection Implements ICustomTypeDescriptor.GetEvents
'使用
Dim instance As DataConnectionProperties
Dim attributes As Attribute()
Dim returnValue As EventDescriptorCollection

returnValue = CType(instance, ICustomTypeDescriptor).GetEvents(attributes)
EventDescriptorCollection ICustomTypeDescriptor.GetEvents(
    Attribute[] attributes
)
private:
virtual EventDescriptorCollection^ GetEvents(
    array<Attribute^>^ attributes
) sealed = ICustomTypeDescriptor::GetEvents
JScript does not support explicit interface implementations.

Parameters

  • attributes
    Type: []

    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([])

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.

Permissions

See Also

Reference

DataConnectionProperties Class

DataConnectionProperties Members

Microsoft.VisualStudio.Data Namespace