共用方式為


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

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

命名空間:  Microsoft.VisualStudio.Data.Framework
組件:  Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.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 方法的實作。 如需詳細資訊,請參閱 GetEvents(System.Attribute[]) 方法至 .NET Framework 類別庫中。

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

.NET Framework 安全性

請參閱

參考

DataConnectionProperties 類別

GetEvents 多載

Microsoft.VisualStudio.Data.Framework 命名空間