CompletionSourceExtensions.Add Metodo

Definizione

Overload

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

Aggiunge un'origine di completamento usando un delegato.

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

Aggiunge un'origine di completamento usando un delegato.

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

Origine:
CompletionSourceExtensions.cs
Origine:
CompletionSourceExtensions.cs

Aggiunge un'origine di completamento usando un delegato.

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)))

Parametri

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

Elenco delle origini di completamento a cui aggiungere.

completionsDelegate
Func<CompletionContext,IEnumerable<String>>

Delegato da chiamare durante il calcolo dei completamenti.

Si applica a

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

Origine:
CompletionSourceExtensions.cs
Origine:
CompletionSourceExtensions.cs

Aggiunge un'origine di completamento usando un delegato.

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())

Parametri

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

Elenco delle origini di completamento a cui aggiungere.

completions
String[]

Elenco di stringhe da suggerire per i completamenti della riga di comando.

Si applica a