CompletionSourceExtensions.Add Methode

Definition

Ü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: