DesignerOptionService.CreateOptionCollection 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用给定名称创建新的 DesignerOptionService.DesignerOptionCollection 并将其添加到给定父级。
protected:
 System::ComponentModel::Design::DesignerOptionService::DesignerOptionCollection ^ CreateOptionCollection(System::ComponentModel::Design::DesignerOptionService::DesignerOptionCollection ^ parent, System::String ^ name, System::Object ^ value);protected System.ComponentModel.Design.DesignerOptionService.DesignerOptionCollection CreateOptionCollection (System.ComponentModel.Design.DesignerOptionService.DesignerOptionCollection parent, string name, object value);member this.CreateOptionCollection : System.ComponentModel.Design.DesignerOptionService.DesignerOptionCollection * string * obj -> System.ComponentModel.Design.DesignerOptionService.DesignerOptionCollectionProtected Function CreateOptionCollection (parent As DesignerOptionService.DesignerOptionCollection, name As String, value As Object) As DesignerOptionService.DesignerOptionCollection参数
父设计器选项集合。 除根对象集合外,所有集合都有父项。
- name
- String
此集合的名称。
- value
- Object
提供此集合的属性的对象。 如果集合不应提供任何属性,则可以是 null。
返回
具有给定名称的新 DesignerOptionService.DesignerOptionCollection。
例外
              parent 或 name 为 null。
              name 是一个空字符串。
注解
参数 value 指定一个对象,该对象的公共属性在选项集合的 集合中使用 Properties 。 如果此选项集合不提供任何属性,则 value 参数可以为 null 。 属性的包装方式是忽略将任何内容传入 的 PropertyDescriptor 组件参数,并 value 替换 对象。