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.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
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