Deila með


CompletionSourceExtensions.Add Method

Definition

Overloads

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

Source:
CompletionSourceExtensions.cs

Adds a completion source using a delegate.

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

Parameters

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

The list of completion sources to add to.

completionsDelegate
Func<CompletionContext,IEnumerable<String>>

The delegate to be called when calculating completions.

Applies to

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

Source:
CompletionSourceExtensions.cs

Adds a completion source using a delegate.

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

Parameters

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

The list of completion sources to add to.

completions
String[]

A list of strings to be suggested for command line completions.

Applies to