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 不支持显式接口实现。

参数

返回值

类型:System.ComponentModel.EventDescriptorCollection
返回表示指定组件实例的 EventDescriptorCollection 筛选的事件。

实现

ICustomTypeDescriptor.GetEvents(array<Attribute[])

备注

此方法提供 GetEvents 方法的实现。有关更多信息在 .NET Framework 选件类库中看到 GetEvents(System.Attribute[]) 方法。

如果在 attributes 数组中指定了 Attribute,并且事件没有该特性的类实例,则返回的数组包含该事件(如果 Attribute 是默认事件)。

.NET Framework 安全性

请参见

参考

DataConnectionProperties 类

GetEvents 重载

Microsoft.VisualStudio.Data 命名空间