AdoDotNetConnectionProperties.ICustomTypeDescriptor.GetEvents Method

Retrieves the events for the specified instance of a component.

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

Syntax

'宣言
Private Function GetEvents As EventDescriptorCollection
    Implements ICustomTypeDescriptor.GetEvents
'使用
Dim instance As AdoDotNetConnectionProperties
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 Empty if no properties are specified.

This method should never return a null reference (Nothing in Visual Basic).

Permissions

See Also

Reference

AdoDotNetConnectionProperties Class

AdoDotNetConnectionProperties Members

Microsoft.VisualStudio.Data.AdoDotNet Namespace