CompletionSourceExtensions.Add Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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>>)
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[])
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.