IdentifierSymbol 类

定义

在命令行接口中具有一个或多个固定名称的符号,如选项或命令。

public ref class IdentifierSymbol abstract : System::CommandLine::Symbol
public abstract class IdentifierSymbol : System.CommandLine.Symbol
type IdentifierSymbol = class
    inherit Symbol
Public MustInherit Class IdentifierSymbol
Inherits Symbol
继承
IdentifierSymbol
派生

构造函数

IdentifierSymbol(String)

初始化 IdentifierSymbol 类的新实例。

IdentifierSymbol(String, String)

初始化 IdentifierSymbol 类的新实例。

属性

Aliases

获取可在命令行上用于指定符号的字符串集。

Description

获取或设置符号的说明。

(继承自 Symbol)
IsHidden

获取或设置一个值,该值指示符号是否隐藏。

(继承自 Symbol)
Name

获取或设置符号名称。

Parents

获取父符号。

(继承自 Symbol)

方法

AddAlias(String)

添加别名。

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetCompletions()

获取符号的完成。

(继承自 Symbol)
GetCompletions(CompletionContext)

获取命令行完成的建议值。

(继承自 Symbol)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
HasAlias(String)

确定是否已定义别名。

MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

返回表示当前对象的字符串。

(继承自 Symbol)

适用于