CompletionSourceExtensions.Add Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
Add(CompletionSourceList, CompletionDelegate) |
Fügt eine Vervollständigungsquelle mithilfe eines Delegaten hinzu. |
Add(CompletionSourceList, Func<CompletionContext,IEnumerable<String>>) |
Fügt eine Vervollständigungsquelle mithilfe eines Delegaten hinzu. |
Add(CompletionSourceList, String[]) |
Fügt eine Vervollständigungsquelle mithilfe eines Delegaten hinzu. |
Add(CompletionSourceList, CompletionDelegate)
Fügt eine Vervollständigungsquelle mithilfe eines Delegaten hinzu.
public:
[System::Runtime::CompilerServices::Extension]
static void Add(System::CommandLine::CompletionSourceList ^ completionSources, System::CommandLine::Completions::CompletionDelegate ^ complete);
public static void Add (this System.CommandLine.CompletionSourceList completionSources, System.CommandLine.Completions.CompletionDelegate complete);
static member Add : System.CommandLine.CompletionSourceList * System.CommandLine.Completions.CompletionDelegate -> unit
<Extension()>
Public Sub Add (completionSources As CompletionSourceList, complete As CompletionDelegate)
Parameter
- completionSources
- CompletionSourceList
Die Liste der Vervollständigungsquellen, zu der hinzugefügt werden soll.
- complete
- CompletionDelegate
Der Delegat, der beim Berechnen von Vervollständigungen aufgerufen werden soll.
Gilt für:
Add(CompletionSourceList, Func<CompletionContext,IEnumerable<String>>)
Fügt eine Vervollständigungsquelle mithilfe eines Delegaten hinzu.
public:
[System::Runtime::CompilerServices::Extension]
static void Add(System::CommandLine::CompletionSourceList ^ completionSources, Func<System::CommandLine::Completions::CompletionContext ^, System::Collections::Generic::IEnumerable<System::String ^> ^> ^ complete);
public static void Add (this System.CommandLine.CompletionSourceList completionSources, Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<string>> complete);
static member Add : System.CommandLine.CompletionSourceList * Func<System.CommandLine.Completions.CompletionContext, seq<string>> -> unit
<Extension()>
Public Sub Add (completionSources As CompletionSourceList, complete As Func(Of CompletionContext, IEnumerable(Of String)))
Parameter
- completionSources
- CompletionSourceList
Die Liste der Vervollständigungsquellen, zu der hinzugefügt werden soll.
- complete
- Func<CompletionContext,IEnumerable<String>>
Der Delegat, der beim Berechnen von Vervollständigungen aufgerufen werden soll.
Gilt für:
Add(CompletionSourceList, String[])
Fügt eine Vervollständigungsquelle mithilfe eines Delegaten hinzu.
public:
[System::Runtime::CompilerServices::Extension]
static void Add(System::CommandLine::CompletionSourceList ^ completionSources, ... cli::array <System::String ^> ^ completions);
public static void Add (this System.CommandLine.CompletionSourceList completionSources, params string[] completions);
static member Add : System.CommandLine.CompletionSourceList * string[] -> unit
<Extension()>
Public Sub Add (completionSources As CompletionSourceList, ParamArray completions As String())
Parameter
- completionSources
- CompletionSourceList
Die Liste der Vervollständigungsquellen, zu der hinzugefügt werden soll.
- completions
- String[]
Eine Liste von Zeichenfolgen, die für Befehlszeilenabschlüsse vorgeschlagen werden sollen.
Gilt für:
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Tickets als Feedbackmechanismus für Inhalte auslaufen lassen und es durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unter:Einreichen und Feedback anzeigen für