返回给定元素的 PropertyDescriptorCollection,则使用指定的属性作为筛选器。
命名空间: Microsoft.VisualStudio.Data.Framework
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)
语法
声明
Public Overrides Function GetChildProperties ( _
instance As Object, _
filter As Attribute() _
) As PropertyDescriptorCollection
public override PropertyDescriptorCollection GetChildProperties(
Object instance,
Attribute[] filter
)
public:
virtual PropertyDescriptorCollection^ GetChildProperties(
Object^ instance,
array<Attribute^>^ filter
) override
abstract GetChildProperties :
instance:Object *
filter:Attribute[] -> PropertyDescriptorCollection
override GetChildProperties :
instance:Object *
filter:Attribute[] -> PropertyDescriptorCollection
public override function GetChildProperties(
instance : Object,
filter : Attribute[]
) : PropertyDescriptorCollection
参数
- instance
类型:System.Object
要获取其属性的组件。
- filter
类型:array<System.Attribute[]
数组要使用的 Attribute 对象作为筛选器。
返回值
类型:System.ComponentModel.PropertyDescriptorCollection
一个 PropertyDescriptorCollection,具有匹配指定组件的指定特性的属性。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。