CommandLineConfiguration Konstruktor
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.
Menginisialisasi instans baru kelas CommandLineConfiguration.
public CommandLineConfiguration (System.CommandLine.Command command, bool enablePosixBundling = true, bool enableDirectives = true, bool enableLegacyDoubleDashBehavior = false, System.CommandLine.LocalizationResources? resources = default, System.CommandLine.Parsing.ResponseFileHandling responseFileHandling = System.CommandLine.Parsing.ResponseFileHandling.ParseArgsAsLineSeparated, System.Collections.Generic.IReadOnlyList<System.CommandLine.Invocation.InvocationMiddleware>? middlewarePipeline = default, Func<System.CommandLine.Binding.BindingContext,System.CommandLine.Help.HelpBuilder>? helpBuilderFactory = default);
new System.CommandLine.CommandLineConfiguration : System.CommandLine.Command * bool * bool * bool * System.CommandLine.LocalizationResources * System.CommandLine.Parsing.ResponseFileHandling * System.Collections.Generic.IReadOnlyList<System.CommandLine.Invocation.InvocationMiddleware> * Func<System.CommandLine.Binding.BindingContext, System.CommandLine.Help.HelpBuilder> -> System.CommandLine.CommandLineConfiguration
Public Sub New (command As Command, Optional enablePosixBundling As Boolean = true, Optional enableDirectives As Boolean = true, Optional enableLegacyDoubleDashBehavior As Boolean = false, Optional resources As LocalizationResources = Nothing, Optional responseFileHandling As ResponseFileHandling = System.CommandLine.Parsing.ResponseFileHandling.ParseArgsAsLineSeparated, Optional middlewarePipeline As IReadOnlyList(Of InvocationMiddleware) = Nothing, Optional helpBuilderFactory As Func(Of BindingContext, HelpBuilder) = Nothing)
Parameter
- command
- Command
Perintah akar untuk pengurai.
- enablePosixBundling
- Boolean
true untuk mengaktifkan bundling POSIX; jika tidak, false.
- enableDirectives
- Boolean
true untuk mengaktifkan penguraian direktif; jika tidak, false.
- enableLegacyDoubleDashBehavior
- Boolean
Memungkinkan perilaku warisan -- token, yaitu mengabaikan penguraian token berikutnya dan menempatkannya dalam UnparsedTokens daftar.
- resources
- LocalizationResources
Berikan pesan validasi kustom.
- responseFileHandling
- ResponseFileHandling
Salah satu nilai enumerasi yang menentukan bagaimana file respons (.rsp) ditangani.
- middlewarePipeline
- IReadOnlyList<InvocationMiddleware>
Menyediakan alur middleware kustom.
- helpBuilderFactory
- Func<BindingContext,HelpBuilder>
Berikan penyusun bantuan kustom.