PropertyDescriptorCollection 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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指定无法修改集合。