Udostępnij przez


ArgumentExtensions.AddCompletions Metoda

Definicja

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

TArgument

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

TArgument

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

TArgument

Skonfigurowany argument.

Dotyczy