DesignerOptionService.CreateOptionCollection Method     
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new DesignerOptionService.DesignerOptionCollection with the given name and adds it to the given parent.
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.DesignerOptionCollectionParameters
The parent designer option collection. All collections have a parent except the root object collection.
- name
- String
The name of this collection.
- value
- Object
The object providing properties for this collection. Can be null if the collection should not provide any properties.
Returns
A new DesignerOptionService.DesignerOptionCollection with the given name.
Exceptions
parent or name is null.
name is an empty string.
Remarks
The value parameter specifies an object whose public properties are used in the Properties collection of the option collection. The value parameter can be null if this options collection does not offer any properties. Properties are wrapped in such a way that passing anything into the component parameter of the PropertyDescriptor is ignored, and the value object is substituted.