Argument 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
public ref class Argument abstract : System::CommandLine::Symbol
public ref class Argument : System::CommandLine::Symbol, System::CommandLine::IArgument
public abstract class Argument : System.CommandLine.Symbol
public class Argument : System.CommandLine.Symbol, System.CommandLine.IArgument
type Argument = class
inherit Symbol
type Argument = class
inherit Symbol
interface IArgument
interface ISymbol
interface ISuggestionSource
interface IValueDescriptor
Public MustInherit Class Argument
Inherits Symbol
Public Class Argument
Inherits Symbol
Implements IArgument
- 繼承
- 衍生
- 實作
建構函式
| 名稱 | Description |
|---|---|
| Argument() | |
| Argument(String) |
初始化 Argument 類別的新實例。 |
屬性
| 名稱 | Description |
|---|---|
| Aliases | (繼承來源 Symbol) |
| ArgumentType | |
| Arity |
取得或設定論證的強度。 |
| CaptureRemainingTokens |
取得或設定一個值,表示此參數是否捕捉了所有剩餘的標記。 |
| Children | (繼承來源 Symbol) |
| CompletionSources |
取得該論證的補全來源清單。 |
| Description |
取得或設定符號的描述。 (繼承來源 Symbol) |
| HasDefaultValue |
指定參數是否定義了預設值。 |
| HelpName |
取得或設定使用說明中顯示的佔位名稱,作為參數值的值。
該值會被 |
| Hidden |
取得或設定一個值,表示該符號是否被隱藏。 (繼承來源 Symbol) |
| IsHidden | (繼承來源 Symbol) |
| Name |
會得到符號名稱。 (繼承來源 Symbol) |
| Parents |
取得父代碼。 (繼承來源 Symbol) |
| RawAliases | (繼承來源 Symbol) |
| Validators |
提供參數驗證者清單。 驗證器可用來根據使用者輸入提供自訂錯誤。 |
| ValueType |
取得或設定 Type 參數解析後的標記將轉換成 。 |
方法
明確介面實作
| 名稱 | Description |
|---|---|
| IArgument.Arity | |
| ISymbol.Children | (繼承來源 Symbol) |
| IValueDescriptor.Type | |
| IValueDescriptor.ValueName |
擴充方法
| 名稱 | Description |
|---|---|
| BuildAlias(IValueDescriptor) |