CompletionContext.GetWordToComplete 方法

定義

取得要比對完成的文字,可用來篩選完成清單。

protected static string GetWordToComplete (System.CommandLine.Parsing.ParseResult parseResult, int? position = default);
static member GetWordToComplete : System.CommandLine.Parsing.ParseResult * Nullable<int> -> string
Protected Shared Function GetWordToComplete (parseResult As ParseResult, Optional position As Nullable(Of Integer) = Nothing) As String

參數

parseResult
ParseResult

剖析結果。

position
Nullable<Int32>

原始輸入內的位置,如果有的話,提供完成的位置。

傳回

字串,包含要比對完成的使用者輸入文字。

適用於