Share via


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

'Declaration
Private Function GetEvents As EventDescriptorCollection 
    Implements ICustomTypeDescriptor.GetEvents
'Usage
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 nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

DataConnectionProperties Class

DataConnectionProperties Members

DataConnectionProperties Overload

Microsoft.VisualStudio.Data Namespace