CompletionSourceExtensions.Add Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
| Nombre | Description |
|---|---|
| Add(List<Func<CompletionContext,IEnumerable<CompletionItem>>>, Func<CompletionContext,IEnumerable<String>>) |
Agrega un origen de finalización mediante un delegado. |
| Add(List<Func<CompletionContext,IEnumerable<CompletionItem>>>, String[]) |
Agrega un origen de finalización mediante un delegado. |
Add(List<Func<CompletionContext,IEnumerable<CompletionItem>>>, Func<CompletionContext,IEnumerable<String>>)
Agrega un origen de finalización mediante un 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>>>
Lista de orígenes de finalización a los que se va a agregar.
- completionsDelegate
- Func<CompletionContext,IEnumerable<String>>
Delegado al que se va a llamar al calcular finalizaciones.
Se aplica a
Add(List<Func<CompletionContext,IEnumerable<CompletionItem>>>, String[])
Agrega un origen de finalización mediante un 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>>>
Lista de orígenes de finalización a los que se va a agregar.
- completions
- String[]
Lista de cadenas que se sugerirán para las finalizaciones de la línea de comandos.