共用方式為


AdoDotNetConnectionProperties.ICustomTypeDescriptor.GetEvents 方法

擷取指定的元件執行個體的事件。

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

語法

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

傳回值

型別:System.ComponentModel.EventDescriptorCollection
傳回表示指定的元件執行個體的 EventDescriptorCollection 物件事件。

實作

ICustomTypeDescriptor.GetEvents()

備註

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

如果沒有指定屬性,實作器可傳回 Empty

這個方法應該不會傳回 nullNull 參照 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

AdoDotNetConnectionProperties 類別

GetEvents 多載

Microsoft.VisualStudio.Data.AdoDotNet 命名空間