Compartir a través de


DataConnectionProperties.ICustomTypeDescriptor.GetEvents Method

Retrieves the events for the specified instance of a component.

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

Syntax

'Declaration
Private Function GetEvents As EventDescriptorCollection 
    Implements ICustomTypeDescriptor.GetEvents
EventDescriptorCollection ICustomTypeDescriptor.GetEvents()
private:
virtual EventDescriptorCollection^ GetEvents() sealed = ICustomTypeDescriptor::GetEvents
private abstract GetEvents : unit -> EventDescriptorCollection  
private override GetEvents : unit -> EventDescriptorCollection
JScript does not support explicit interface implementations.

Return Value

Type: System.ComponentModel.EventDescriptorCollection
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

GetEvents Overload

Microsoft.VisualStudio.Data.Framework Namespace