检索元素的此实例的事件使用指定的属性数组作为筛选器。
命名空间: 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<System.Attribute[]
用作筛选器类型的数组 Attribute
返回值
类型:System.ComponentModel.EventDescriptorCollection
返回表示指定组件实例的 EventDescriptorCollection 筛选的事件。
实现
ICustomTypeDescriptor.GetEvents(array<Attribute[])
备注
此方法提供 GetEvents 方法的实现。有关更多信息在 .NET Framework 选件类库中看到 GetEvents(System.Attribute[]) 方法。
如果在 attributes 数组中指定了 Attribute,并且事件没有该特性的类实例,则返回的数组包含该事件(如果 Attribute 是默认事件)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。