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