CompletionSourceExtensions.Add Methode

Definition

Überlädt

Name Beschreibung
Add(List<Func<CompletionContext,IEnumerable<CompletionItem>>>, Func<CompletionContext,IEnumerable<String>>)

Fügt eine Abschlussquelle mithilfe eines Delegaten hinzu.

Add(List<Func<CompletionContext,IEnumerable<CompletionItem>>>, String[])

Fügt eine Abschlussquelle mithilfe eines Delegaten hinzu.

Add(List<Func<CompletionContext,IEnumerable<CompletionItem>>>, Func<CompletionContext,IEnumerable<String>>)

Quelle:
CompletionSourceExtensions.cs
Quelle:
CompletionSourceExtensions.cs

Fügt eine Abschlussquelle mithilfe eines Delegaten hinzu.

public:
[System::Runtime::CompilerServices::Extension]
 static void Add(System::Collections::Generic::List<Func<System::CommandLine::Completions::CompletionContext ^, System::Collections::Generic::IEnumerable<System::CommandLine::Completions::CompletionItem ^> ^> ^> ^ completionSources, Func<System::CommandLine::Completions::CompletionContext ^, System::Collections::Generic::IEnumerable<System::String ^> ^> ^ completionsDelegate);
public static void Add(this System.Collections.Generic.List<Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem>>> completionSources, Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<string>> completionsDelegate);
static member Add : System.Collections.Generic.List<Func<System.CommandLine.Completions.CompletionContext, seq<System.CommandLine.Completions.CompletionItem>>> * Func<System.CommandLine.Completions.CompletionContext, seq<string>> -> unit
<Extension()>
Public Sub Add (completionSources As List(Of Func(Of CompletionContext, IEnumerable(Of CompletionItem))), completionsDelegate As Func(Of CompletionContext, IEnumerable(Of String)))

Parameter

completionSources
List<Func<CompletionContext,IEnumerable<CompletionItem>>>

Die Liste der Abschlussquellen, die hinzugefügt werden sollen.

completionsDelegate
Func<CompletionContext,IEnumerable<String>>

Der Delegat, der beim Berechnen von Fertigstellungen aufgerufen werden soll.

Gilt für:

Add(List<Func<CompletionContext,IEnumerable<CompletionItem>>>, String[])

Quelle:
CompletionSourceExtensions.cs
Quelle:
CompletionSourceExtensions.cs

Fügt eine Abschlussquelle mithilfe eines Delegaten hinzu.

public:
[System::Runtime::CompilerServices::Extension]
 static void Add(System::Collections::Generic::List<Func<System::CommandLine::Completions::CompletionContext ^, System::Collections::Generic::IEnumerable<System::CommandLine::Completions::CompletionItem ^> ^> ^> ^ completionSources, ... cli::array <System::String ^> ^ completions);
public static void Add(this System.Collections.Generic.List<Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<System.CommandLine.Completions.CompletionItem>>> completionSources, params string[] completions);
static member Add : System.Collections.Generic.List<Func<System.CommandLine.Completions.CompletionContext, seq<System.CommandLine.Completions.CompletionItem>>> * string[] -> unit
<Extension()>
Public Sub Add (completionSources As List(Of Func(Of CompletionContext, IEnumerable(Of CompletionItem))), ParamArray completions As String())

Parameter

completionSources
List<Func<CompletionContext,IEnumerable<CompletionItem>>>

Die Liste der Abschlussquellen, die hinzugefügt werden sollen.

completions
String[]

Eine Liste der Zeichenfolgen, die für Die Fertigstellung der Befehlszeile vorgeschlagen werden sollen.

Gilt für: