CompletionSourceExtensions.Add Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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.