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.DesignerOptionCollection
Protected Function CreateOptionCollection (parent As DesignerOptionService.DesignerOptionCollection, name As String, value As Object) As DesignerOptionService.DesignerOptionCollection
Parameters
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.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor