共用方式為


EnvironmentVariablesDirective 類別

定義

允許指令 [env:key=value] 使用,允許在調用時從命令列設定環境變數。

public ref class EnvironmentVariablesDirective sealed : System::CommandLine::Directive
public sealed class EnvironmentVariablesDirective : System.CommandLine.Directive
type EnvironmentVariablesDirective = class
    inherit Directive
Public NotInheritable Class EnvironmentVariablesDirective
Inherits Directive
繼承
EnvironmentVariablesDirective

建構函式

名稱 Description
EnvironmentVariablesDirective()

初始化 Object 類別的新執行個體。

屬性

名稱 Description
Action

為指令取得或設定。CommandLineAction 處理器代表指令被呼叫時將執行的動作。

Description

取得或設定符號的描述。

(繼承來源 Symbol)
Hidden

取得或設定一個值,表示該符號是否被隱藏。

(繼承來源 Symbol)
Name

會得到符號名稱。

(繼承來源 Symbol)
Parents

取得父代碼。

(繼承來源 Symbol)

方法

名稱 Description
GetCompletions(CompletionContext)

取得符號的補全。

(繼承來源 Directive)
ToString()

回傳一個代表當前物件的字串。

(繼承來源 Symbol)

適用於