Edit

Share via


Symbol Class

Definition

Defines a named symbol that resides in a hierarchy with parent and child symbols.

C#
public abstract class Symbol : System.CommandLine.Completions.ICompletionSource
Inheritance
Symbol
Derived
Implements

Properties

Description

Gets or sets the description of the symbol.

IsHidden

Gets or sets a value indicating whether the symbol is hidden.

Name

Gets or sets the name of the symbol.

Parents

Gets the parent symbols.

Methods

GetCompletions()

Gets completions for the symbol.

GetCompletions(CompletionContext)

Gets the suggested values for command line completion.

ToString()

Returns a string that represents the current object.

Applies to

Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)