DataConnectionProperties.ICustomTypeDescriptor.GetEvents Method

Retrieves the events for the specified instance of a component.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'宣言
Private Function GetEvents As EventDescriptorCollection
    Implements ICustomTypeDescriptor.GetEvents
'使用
Dim instance As DataConnectionProperties
Dim returnValue As EventDescriptorCollection

returnValue = CType(instance, ICustomTypeDescriptor).GetEvents()
EventDescriptorCollection ICustomTypeDescriptor.GetEvents()
private:
virtual EventDescriptorCollection^ GetEvents() sealed = ICustomTypeDescriptor::GetEvents
JScript does not support explicit interface implementations.

Return Value

Type: System.ComponentModel.EventDescriptorCollection

Returns an EventDescriptorCollection object representing the 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 method in the .NET Framework class library.

Implementers can return an System.ComponentModel.EventDescriptorCollection.Empty instance if no properties are specified. This method should never return a null reference (Nothing in Visual Basic).

Permissions

See Also

Reference

DataConnectionProperties Class

DataConnectionProperties Members

Microsoft.VisualStudio.Data Namespace