Condividi tramite


CompletionSourceExtensions.Add Metodo

Definizione

Overload

Add(CompletionSourceList, CompletionDelegate)

Aggiunge un'origine di completamento usando un delegato.

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

Aggiunge un'origine di completamento usando un delegato.

Add(CompletionSourceList, String[])

Aggiunge un'origine di completamento usando un delegato.

Add(CompletionSourceList, CompletionDelegate)

Aggiunge un'origine di completamento usando un delegato.

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)

Parametri

completionSources
CompletionSourceList

Elenco di origini di completamento a cui aggiungere.

complete
CompletionDelegate

Delegato da chiamare durante il calcolo dei completamenti.

Si applica a

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

Aggiunge un'origine di completamento usando un delegato.

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

Parametri

completionSources
CompletionSourceList

Elenco di origini di completamento a cui aggiungere.

complete
Func<CompletionContext,IEnumerable<String>>

Delegato da chiamare durante il calcolo dei completamenti.

Si applica a

Add(CompletionSourceList, String[])

Aggiunge un'origine di completamento usando un delegato.

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

Parametri

completionSources
CompletionSourceList

Elenco di origini di completamento a cui aggiungere.

completions
String[]

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

Si applica a