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

'宣言
Private Function GetDefaultEvent As EventDescriptor
    Implements ICustomTypeDescriptor.GetDefaultEvent
'使用
Dim instance As AdoDotNetConnectionProperties
Dim returnValue As EventDescriptor

returnValue = CType(instance, ICustomTypeDescriptor).GetDefaultEvent()
EventDescriptor ICustomTypeDescriptor.GetDefaultEvent()
private:
virtual EventDescriptor^ GetDefaultEvent() sealed = ICustomTypeDescriptor::GetDefaultEvent
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 a 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.

Permissions

See Also

Reference

AdoDotNetConnectionProperties Class

AdoDotNetConnectionProperties Members

Microsoft.VisualStudio.Data.AdoDotNet Namespace