Language

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>

入力候補を提供する生入力内の位置 (使用可能な場合)。

返品

入力候補と一致するユーザー入力テキストを含む文字列。

適用対象