CommandLineBuilderExtensions.AddOption<TBuilder> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
generic <typename TBuilder>
where TBuilder : System::CommandLine::Builder::CommandBuilder[System::Runtime::CompilerServices::Extension]
static TBuilder AddOption(TBuilder builder, System::CommandLine::Option ^ option);
public static TBuilder AddOption<TBuilder>(this TBuilder builder, System.CommandLine.Option option) where TBuilder : System.CommandLine.Builder.CommandBuilder;
static member AddOption : 'Builder * System.CommandLine.Option -> 'Builder (requires 'Builder :> System.CommandLine.Builder.CommandBuilder)
<Extension()>
Public Function AddOption(Of TBuilder As CommandBuilder) (builder As TBuilder, option As Option) As TBuilder
Type Parameters
- TBuilder
Parameters
- builder
- TBuilder
- option
- Option