共用方式為


AdoDotNetConnectionProperties.ICustomTypeDescriptor.GetEvents 方法 (array<Attribute[])

擷取這個元件執行個體的事件使用指定的屬性陣列做為篩選條件。

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

語法

'宣告
Private Function GetEvents ( _
    attributes As Attribute() _
) As EventDescriptorCollection Implements ICustomTypeDescriptor.GetEvents
EventDescriptorCollection ICustomTypeDescriptor.GetEvents(
    Attribute[] attributes
)
private:
virtual EventDescriptorCollection^ GetEvents(
    array<Attribute^>^ attributes
) sealed = ICustomTypeDescriptor::GetEvents
private abstract GetEvents : 
        attributes:Attribute[] -> EventDescriptorCollection  
private override GetEvents : 
        attributes:Attribute[] -> EventDescriptorCollection
JScript 不支援明確介面實作。

參數

  • attributes
    類型:array<Attribute[]

    做為篩選條件的 Attribute 型別的陣列。

傳回值

類型:EventDescriptorCollection
傳回表示指定的元件執行個體的 EventDescriptorCollection 篩選的事件。

實作

ICustomTypeDescriptor.GetEvents(Attribute)

備註

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

如果 attributes 陣列中已指定 Attribute,且事件沒有該屬性的類別執行個體,那麼如果 Attribute 是預設事件,傳回的陣列會包含事件。

.NET Framework 安全性

請參閱

參考

AdoDotNetConnectionProperties 類別

GetEvents 多載

Microsoft.VisualStudio.Data.AdoDotNet 命名空間