CompletionSourceExtensions.Add Metode

Definisi

Overload

Add(CompletionSourceList, CompletionDelegate)

Menambahkan sumber penyelesaian menggunakan delegasi.

Add(CompletionSourceList, Func<CompletionContext,IEnumerable<String>>)

Menambahkan sumber penyelesaian menggunakan delegasi.

Add(CompletionSourceList, String[])

Menambahkan sumber penyelesaian menggunakan delegasi.

Add(CompletionSourceList, CompletionDelegate)

Menambahkan sumber penyelesaian menggunakan delegasi.

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)

Parameter

completionSources
CompletionSourceList

Daftar sumber penyelesaian untuk ditambahkan.

complete
CompletionDelegate

Delegasi yang akan dipanggil saat menghitung penyelesaian.

Berlaku untuk

Add(CompletionSourceList, Func<CompletionContext,IEnumerable<String>>)

Menambahkan sumber penyelesaian menggunakan delegasi.

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

Parameter

completionSources
CompletionSourceList

Daftar sumber penyelesaian untuk ditambahkan.

complete
Func<CompletionContext,IEnumerable<String>>

Delegasi yang akan dipanggil saat menghitung penyelesaian.

Berlaku untuk

Add(CompletionSourceList, String[])

Menambahkan sumber penyelesaian menggunakan delegasi.

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

Parameter

completionSources
CompletionSourceList

Daftar sumber penyelesaian untuk ditambahkan.

completions
String[]

Daftar string yang akan disarankan untuk penyelesaian baris perintah.

Berlaku untuk