共用方式為


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

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

命名空間:  Microsoft.VisualStudio.Data
組件:  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(System.Attribute[]) 方法。

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

.NET Framework 安全性

請參閱

參考

DataConnectionProperties 類別

GetEvents 多載

Microsoft.VisualStudio.Data 命名空間