public CommandLineParser(
ArgumentProvider provider,
ParseOptions? options = null
)
Public Sub New (
provider As ArgumentProvider,
Optional options As ParseOptions = Nothing
)
Dim provider As ArgumentProvider
Dim options As ParseOptions
Dim instance As New CommandLineParser(provider,
options)
public:
CommandLineParser(
ArgumentProvider^ provider,
ParseOptions^ options = nullptr
)
This constructor supports source generation, and should not typically be used directly by application code.
If the options parameter is not , the instance passed in will be modified to reflect the options from the arguments class's ParseOptionsAttribute attribute, if it has one.
Certain properties of the ParseOptions class can be changed after the CommandLineParser class has been constructed, and still affect the parsing behavior. See the Options property for details.
ArgumentNullException | provider is . |
NotSupportedException | The CommandLineParser cannot use provider for the command line arguments, because it violates one of the rules concerning argument names or positions, or has an argument type that cannot be parsed. |