PropertyDescriptorCollection 构造函数

定义

初始化 PropertyDescriptorCollection 类的新实例。

重载

PropertyDescriptorCollection(PropertyDescriptor[])

初始化 PropertyDescriptorCollection 类的新实例。

PropertyDescriptorCollection(PropertyDescriptor[], Boolean)

初始化 PropertyDescriptorCollection 类的新实例,该类可以是只读类。

PropertyDescriptorCollection(PropertyDescriptor[])

初始化 PropertyDescriptorCollection 类的新实例。

public:
 PropertyDescriptorCollection(cli::array <System::ComponentModel::PropertyDescriptor ^> ^ properties);
public PropertyDescriptorCollection (System.ComponentModel.PropertyDescriptor[] properties);
public PropertyDescriptorCollection (System.ComponentModel.PropertyDescriptor[]? properties);
new System.ComponentModel.PropertyDescriptorCollection : System.ComponentModel.PropertyDescriptor[] -> System.ComponentModel.PropertyDescriptorCollection
Public Sub New (properties As PropertyDescriptor())

参数

properties
PropertyDescriptor[]

提供该集合属性的类型 PropertyDescriptor 的数组。

另请参阅

适用于

PropertyDescriptorCollection(PropertyDescriptor[], Boolean)

初始化 PropertyDescriptorCollection 类的新实例,该类可以是只读类。

public:
 PropertyDescriptorCollection(cli::array <System::ComponentModel::PropertyDescriptor ^> ^ properties, bool readOnly);
public PropertyDescriptorCollection (System.ComponentModel.PropertyDescriptor[] properties, bool readOnly);
public PropertyDescriptorCollection (System.ComponentModel.PropertyDescriptor[]? properties, bool readOnly);
new System.ComponentModel.PropertyDescriptorCollection : System.ComponentModel.PropertyDescriptor[] * bool -> System.ComponentModel.PropertyDescriptorCollection
Public Sub New (properties As PropertyDescriptor(), readOnly As Boolean)

参数

properties
PropertyDescriptor[]

提供该集合属性的类型 PropertyDescriptor 的数组。

readOnly
Boolean

如果为 true,则指定该集合无法修改。

另请参阅

适用于