CommandLineBuilderExtensions.CancelOnProcessTermination 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.
Enables signaling and handling of process termination via a CancellationToken that can be passed to a ICommandHandler during invocation.
public:
[System::Runtime::CompilerServices::Extension]
static System::CommandLine::Builder::CommandLineBuilder ^ CancelOnProcessTermination(System::CommandLine::Builder::CommandLineBuilder ^ builder);
public static System.CommandLine.Builder.CommandLineBuilder CancelOnProcessTermination(this System.CommandLine.Builder.CommandLineBuilder builder);
static member CancelOnProcessTermination : System.CommandLine.Builder.CommandLineBuilder -> System.CommandLine.Builder.CommandLineBuilder
<Extension()>
Public Function CancelOnProcessTermination (builder As CommandLineBuilder) As CommandLineBuilder
Parameters
- builder
- CommandLineBuilder
A command line builder.
Returns
The same instance of CommandLineBuilder.
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.