ArgumentExtensions.AddCompletions Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
AddCompletions<TArgument>(TArgument, CompletionDelegate) |
Dodaje uzupełnianie argumentu. |
AddCompletions<TArgument>(TArgument, Func<CompletionContext,IEnumerable<String>>) |
Dodaje uzupełnianie dla opcji. |
AddCompletions<TArgument>(TArgument, String[]) |
Dodaje uzupełnianie argumentu. |
AddCompletions<TArgument>(TArgument, CompletionDelegate)
Dodaje uzupełnianie argumentu.
public:
generic <typename TArgument>
where TArgument : System::CommandLine::Argument[System::Runtime::CompilerServices::Extension]
static TArgument AddCompletions(TArgument argument, System::CommandLine::Completions::CompletionDelegate ^ complete);
public static TArgument AddCompletions<TArgument> (this TArgument argument, System.CommandLine.Completions.CompletionDelegate complete) where TArgument : System.CommandLine.Argument;
static member AddCompletions : 'Argument * System.CommandLine.Completions.CompletionDelegate -> 'Argument (requires 'Argument :> System.CommandLine.Argument)
<Extension()>
Public Function AddCompletions(Of TArgument As Argument) (argument As TArgument, complete As CompletionDelegate) As TArgument
Parametry typu
- TArgument
Typ argumentu.
Parametry
- argument
- TArgument
Argument, dla którego należy dodać uzupełnienia.
- complete
- CompletionDelegate
Element CompletionDelegate , który zostanie wywołany w celu zapewnienia uzupełniania.
Zwraca
Skonfigurowany argument.
Dotyczy
AddCompletions<TArgument>(TArgument, Func<CompletionContext,IEnumerable<String>>)
Dodaje uzupełnianie dla opcji.
public:
generic <typename TArgument>
where TArgument : System::CommandLine::Argument[System::Runtime::CompilerServices::Extension]
static TArgument AddCompletions(TArgument argument, Func<System::CommandLine::Completions::CompletionContext ^, System::Collections::Generic::IEnumerable<System::String ^> ^> ^ complete);
public static TArgument AddCompletions<TArgument> (this TArgument argument, Func<System.CommandLine.Completions.CompletionContext,System.Collections.Generic.IEnumerable<string>> complete) where TArgument : System.CommandLine.Argument;
static member AddCompletions : 'Argument * Func<System.CommandLine.Completions.CompletionContext, seq<string>> -> 'Argument (requires 'Argument :> System.CommandLine.Argument)
<Extension()>
Public Function AddCompletions(Of TArgument As Argument) (argument As TArgument, complete As Func(Of CompletionContext, IEnumerable(Of String))) As TArgument
Parametry typu
- TArgument
Typ argumentu.
Parametry
- argument
- TArgument
Argument, dla którego należy dodać uzupełnienia.
- complete
- Func<CompletionContext,IEnumerable<String>>
Element CompletionDelegate , który zostanie wywołany w celu zapewnienia uzupełniania.
Zwraca
Opcja jest rozszerzana.
Dotyczy
AddCompletions<TArgument>(TArgument, String[])
Dodaje uzupełnianie argumentu.
public:
generic <typename TArgument>
where TArgument : System::CommandLine::Argument[System::Runtime::CompilerServices::Extension]
static TArgument AddCompletions(TArgument argument, ... cli::array <System::String ^> ^ values);
public static TArgument AddCompletions<TArgument> (this TArgument argument, params string[] values) where TArgument : System.CommandLine.Argument;
static member AddCompletions : 'Argument * string[] -> 'Argument (requires 'Argument :> System.CommandLine.Argument)
<Extension()>
Public Function AddCompletions(Of TArgument As Argument) (argument As TArgument, ParamArray values As String()) As TArgument
Parametry typu
- TArgument
Typ argumentu.
Parametry
- argument
- TArgument
Argument, dla którego należy dodać uzupełnienia.
- values
- String[]
Uzupełnianie do dodania.
Zwraca
Skonfigurowany argument.
Dotyczy
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla