Partager via


AdoDotNetConnectionProperties.ICustomTypeDescriptor.GetDefaultEvent Method

Retrieves the default event for the specified object.

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

Syntax

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

Return Value

Type: System.ComponentModel.EventDescriptor
Returns an EventDescriptor representing the default event for the specified object, or returns nulla null reference (Nothing in Visual Basic) if this object does not have events.

Implements

ICustomTypeDescriptor.GetDefaultEvent()

Remarks

This method provides an implementation of the GetDefaultEvent method. For more information see the GetDefaultEvent method in the .NET Framework class library.

.NET Framework Security

See Also

Reference

AdoDotNetConnectionProperties Class

Microsoft.VisualStudio.Data.AdoDotNet Namespace