共用方式為


DataConnectionProperties.ICustomTypeDescriptor.GetEvents 方法

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

命名空間:  Microsoft.VisualStudio.Data.Framework
組件:  Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.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 不支援明確介面實作。

傳回值

類型:EventDescriptorCollection
表示指定的元件執行個體的 EventDescriptorCollection 物件的事件。

實作

ICustomTypeDescriptor.GetEvents

備註

這個方法會提供 GetEvents 方法的實作。 如需詳細資訊,請參閱 GetEvents 方法至 .NET Framework 類別庫中。

如果沒有指定屬性,實作可能傳回 System.ComponentModel.EventDescriptorCollection.Empty 執行個體。 這個方法應該不會傳回 nullnull 參考 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

DataConnectionProperties 類別

GetEvents 多載

Microsoft.VisualStudio.Data.Framework 命名空間