Parameter | Description |
---|---|
name | The unique identifier of the option. |
dataType | The data type of the option. |
IOptionBuilder An IOptionBuilder to further configure the option.
Adds a new node option.
name
is used to identify the option. It must be unique among ports and options on the node. This name is used as the ID when calling GetNodeOptionByName.
If IOptionBuilder.WithDisplayName is not used, this name is also used as the option's display label.
protected override void OnDefineOptions(IOptionDefinitionContext context) { context.AddOption("MyOption", typeof(int))) .WithDefaultValue(2) .Delayed() }
Parameter | Description |
---|---|
name | The unique identifier of the option. |
IOptionBuilder<TData> An IOptionBuilder to further configure the option.
Adds a new node option.
name
is used to identify the option. It must be unique among ports and options on the node. This name is used as the ID when calling GetNodeOptionByName.
If IOptionBuilder_1.WithDisplayName is not used, this name is also used as the option's display label.
protected override void OnDefineOptions(IOptionDefinitionContext context) { context.AddOption<int>("MyOption") .WithDefaultValue(2) .Delayed() }