Idioma

CompletionSourceExtensions.Add Método

Definição

Sobrecargas

Nome Descrição
Add(List<Func<CompletionContext,IEnumerable<CompletionItem>>>, Func<CompletionContext,IEnumerable<String>>)

Adiciona uma fonte de conclusão usando um delegado.

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

Adiciona uma fonte de conclusão usando um delegado.

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

Origem:
CompletionSourceExtensions.cs
Origem:
CompletionSourceExtensions.cs

Adiciona uma fonte de conclusão usando um delegado.

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

Parâmetros

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

A lista de fontes de conclusão a acrescentar.

completionsDelegate
Func<CompletionContext,IEnumerable<String>>

O delegado a ser chamado ao calcular as completações.

Aplica-se a

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

Origem:
CompletionSourceExtensions.cs
Origem:
CompletionSourceExtensions.cs

Adiciona uma fonte de conclusão usando um delegado.

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

Parâmetros

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

A lista de fontes de conclusão a acrescentar.

completions
String[]

Uma lista de cadeias a sugerir para completar a linha de comandos.

Aplica-se a