检索元素的指定实例的属性,使用属性数组作为筛选器。
命名空间: Microsoft.VisualStudio.Data.Framework
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)
语法
声明
Private Function GetProperties ( _
attributes As Attribute() _
) As PropertyDescriptorCollection Implements ICustomTypeDescriptor.GetProperties
PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(
Attribute[] attributes
)
private:
virtual PropertyDescriptorCollection^ GetProperties(
array<Attribute^>^ attributes
) sealed = ICustomTypeDescriptor::GetProperties
private abstract GetProperties :
attributes:Attribute[] -> PropertyDescriptorCollection
private override GetProperties :
attributes:Attribute[] -> PropertyDescriptorCollection
JScript 不支持显式接口实现。
参数
- attributes
类型:array<System.Attribute[]
用于类型的数组 Attribute,返回的属性的筛选器定义。
返回值
类型:System.ComponentModel.PropertyDescriptorCollection
当前已知的属性的类型描述符的集合与指定的属性。
实现
ICustomTypeDescriptor.GetProperties(array<Attribute[])
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。