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.1.0+9df03b6173b5fc9d44dc39638758964dd7a0f4c7
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