共用方式為


AdoDotNetConnectionProperties.ICustomTypeDescriptor.GetDefaultEvent 方法

擷取指定物件的預設事件。

命名空間:  Microsoft.VisualStudio.Data.AdoDotNet
組件:  Microsoft.VisualStudio.Data (在 Microsoft.VisualStudio.Data.dll 中)

語法

'宣告
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 不支援明確介面實作。

傳回值

型別:System.ComponentModel.EventDescriptor
如果此物件沒有事件,傳回表示指定之物件的 EventDescriptor 預設事件或傳回 nullNull 參照 (即 Visual Basic 中的 Nothing) 。

實作

ICustomTypeDescriptor.GetDefaultEvent()

備註

這個方法 GetDefaultEvent 提供方法的實作。如需詳細資訊 .NET Framework 在類別庫中看到 GetDefaultEvent 方法。

.NET Framework 安全性

請參閱

參考

AdoDotNetConnectionProperties 類別

Microsoft.VisualStudio.Data.AdoDotNet 命名空間