CommandOptionsParentCommand Property

Gets or sets the parent command to filter commands by.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public Type? ParentCommand { get; set; }

Property Value

Type
The Type of a command whose children should be used by the CommandManager class, or to use commands without a parent.

Remarks

The CommandManager class will only consider commands whose parent, as set using the ParentCommandAttribute attribute, matches this type. If this property is , only commands that do not have a the ParentCommandAttribute attribute are considered.

All other commands are filtered out and will not be returned, created, or executed by the CommandManager class.

See Also