Partilhar via


CompletionSourceExtensions.Add Método

Definição

Sobrecargas

Add(CompletionSourceList, CompletionDelegate)

Adiciona uma fonte de conclusão usando um delegado.

Add(CompletionSourceList, Func<CompletionContext,IEnumerable<String>>)

Adiciona uma fonte de conclusão usando um delegado.

Add(CompletionSourceList, String[])

Adiciona uma fonte de conclusão usando um delegado.

Add(CompletionSourceList, CompletionDelegate)

Adiciona uma fonte de conclusão usando um delegado.

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)

Parâmetros

completionSources
CompletionSourceList

A lista de fontes de conclusão a serem adicionadas.

complete
CompletionDelegate

O delegado a ser chamado ao calcular as conclusões.

Aplica-se a

Add(CompletionSourceList, Func<CompletionContext,IEnumerable<String>>)

Adiciona uma fonte de conclusão usando um delegado.

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

Parâmetros

completionSources
CompletionSourceList

A lista de fontes de conclusão a serem adicionadas.

complete
Func<CompletionContext,IEnumerable<String>>

O delegado a ser chamado ao calcular as conclusões.

Aplica-se a

Add(CompletionSourceList, String[])

Adiciona uma fonte de conclusão usando um delegado.

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

Parâmetros

completionSources
CompletionSourceList

A lista de fontes de conclusão a serem adicionadas.

completions
String[]

Uma lista de cadeias de caracteres a serem sugeridas para conclusões de linha de comando.

Aplica-se a