CommandLineBuilderExtensions.UseTokenReplacer 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.
Specifies a delegate used to replace any token prefixed with @
with zero or more other tokens, prior to parsing.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Builder::CommandLineBuilder ^ UseTokenReplacer(System::CommandLine::Builder::CommandLineBuilder ^ builder, System::CommandLine::Parsing::TryReplaceToken ^ replaceToken);
public static System.CommandLine.Builder.CommandLineBuilder UseTokenReplacer(this System.CommandLine.Builder.CommandLineBuilder builder, System.CommandLine.Parsing.TryReplaceToken? replaceToken);
static member UseTokenReplacer : System.CommandLine.Builder.CommandLineBuilder * System.CommandLine.Parsing.TryReplaceToken -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function UseTokenReplacer (builder As CommandLineBuilder, replaceToken As TryReplaceToken) As CommandLineBuilder
Parameters
- builder
- CommandLineBuilder
A command line builder.
- replaceToken
- TryReplaceToken
Replaces the specified token with any number of other tokens.
Returns
The same instance of CommandLineBuilder.