CompletionContext.GetWordToComplete 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得要匹配的文字以進行補全,可用來篩選完成列表。
protected static string GetWordToComplete(System.CommandLine.ParseResult parseResult, int? position = default);
static member GetWordToComplete : System.CommandLine.ParseResult * Nullable<int> -> string
Protected Shared Function GetWordToComplete (parseResult As ParseResult, Optional position As Nullable(Of Integer) = Nothing) As String
參數
- parseResult
- ParseResult
一個解析結果。
傳回
包含使用者輸入的文字,需匹配以完成。