ICustomTypeDescriptor.GetProperties 方法

定义

返回组件的此实例的属性。

重载

名称 说明
GetProperties()

返回组件的此实例的属性。

GetProperties(Attribute[])

使用属性数组作为筛选器返回组件的此实例的属性。

GetProperties()

返回组件的此实例的属性。

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetProperties();
public System.ComponentModel.PropertyDescriptorCollection GetProperties();
abstract member GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetProperties () As PropertyDescriptorCollection

返回

一个 PropertyDescriptorCollection 表示此组件实例的属性。

注解

此实例的属性可能与类提供的属性集不同。 例如,如果组件是站点,则站点可以添加或删除其他属性。

如果未指定任何属性,则实现者可以返回 PropertyDescriptorCollection.Empty 。 此方法绝不应返回 null

另请参阅

适用于

GetProperties(Attribute[])

使用属性数组作为筛选器返回组件的此实例的属性。

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(cli::array <Attribute ^> ^ attributes);
public System.ComponentModel.PropertyDescriptorCollection GetProperties(Attribute[] attributes);
abstract member GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetProperties (attributes As Attribute()) As PropertyDescriptorCollection

参数

attributes
Attribute[]

用作筛选器的类型 Attribute 数组。

返回

一个 PropertyDescriptorCollection 表示此组件实例的筛选属性。

注解

此实例的属性可能与类提供的属性集不同。 例如,如果组件是站点,则站点可以添加或删除其他属性。

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

有关筛选规则,请参阅 GetProperties

另请参阅

适用于