語言

CompletionContext.GetWordToComplete 方法

定義

取得要匹配的文字以進行補全,可用來篩選完成列表。

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

一個解析結果。

position
Nullable<Int32>

原始輸入中提供補全(若有)的位置。

傳回

包含使用者輸入的文字,需匹配以完成。

適用於