Sdílet prostřednictvím


ArgumentExtensions.AddCompletions Metoda

Definice

Přetížení

AddCompletions<TArgument>(TArgument, CompletionDelegate)

Přidá dokončování argumentu.

AddCompletions<TArgument>(TArgument, Func<CompletionContext,IEnumerable<String>>)

Přidá dokončování pro možnost.

AddCompletions<TArgument>(TArgument, String[])

Přidá dokončování argumentu.

AddCompletions<TArgument>(TArgument, CompletionDelegate)

Přidá dokončování 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, pro který chcete přidat dokončení.

complete
CompletionDelegate

Zavolá CompletionDelegate se za účelem dokončení.

Návraty

TArgument

Nakonfigurovaný argument.

Platí pro

AddCompletions<TArgument>(TArgument, Func<CompletionContext,IEnumerable<String>>)

Přidá dokončování pro možnost.

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, pro který chcete přidat dokončení.

complete
Func<CompletionContext,IEnumerable<String>>

Zavolá CompletionDelegate se za účelem dokončení.

Návraty

TArgument

Možnost se rozšiřuje.

Platí pro

AddCompletions<TArgument>(TArgument, String[])

Přidá dokončování 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, pro který chcete přidat dokončení.

values
String[]

Dokončení, která se mají přidat.

Návraty

TArgument

Nakonfigurovaný argument.

Platí pro