CompletionSourceExtensions.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Add(CompletionSourceList, CompletionDelegate) |
Adds a completion source using a delegate. |
Add(CompletionSourceList, Func<CompletionContext,IEnumerable<String>>) |
Adds a completion source using a delegate. |
Add(CompletionSourceList, String[]) |
Adds a completion source using a delegate. |
Add(CompletionSourceList, CompletionDelegate)
Adds a completion source using a delegate.
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)
Parameters
- completionSources
- CompletionSourceList
The list of completion sources to add to.
- complete
- CompletionDelegate
The delegate to be called when calculating completions.
Applies to
Add(CompletionSourceList, Func<CompletionContext,IEnumerable<String>>)
Adds a completion source using a delegate.
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)))
Parameters
- completionSources
- CompletionSourceList
The list of completion sources to add to.
- complete
- Func<CompletionContext,IEnumerable<String>>
The delegate to be called when calculating completions.
Applies to
Add(CompletionSourceList, String[])
Adds a completion source using a delegate.
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())
Parameters
- completionSources
- CompletionSourceList
The list of completion sources to add to.
- completions
- String[]
A list of strings to be suggested for command line completions.
Applies to
משוב
https://aka.ms/ContentUserFeedback.
בקרוב: במהלך 2024, נפתור בעיות GitHub כמנגנון המשוב לתוכן ונחליף אותו במערכת משוב חדשה. לקבלת מידע נוסף, ראה:שלח והצג משוב עבור