Språk

BindingHandler Class

Definition

Represents a handler that provides binding functionality for command-line actions.

public ref class BindingHandler abstract : System::CommandLine::Invocation::AsynchronousCommandLineAction
public abstract class BindingHandler : System.CommandLine.Invocation.AsynchronousCommandLineAction
type BindingHandler = class
    inherit AsynchronousCommandLineAction
Public MustInherit Class BindingHandler
Inherits AsynchronousCommandLineAction
Inheritance
Derived

Remarks

This abstract class serves as a base for implementing custom binding logic in command-line applications. It provides a mechanism to retrieve or initialize a BindingContext for the current invocation.

Constructors

Name Description
BindingHandler()

Properties

Name Description
ClearsParseErrors

Indicates that the action clears any parse errors associated with symbols other than one that owns the CommandLineAction.

(Inherited from CommandLineAction)
Terminating

Indicates that the action terminates a command line invocation, and later actions are skipped.

(Inherited from CommandLineAction)

Methods

Name Description
GetBindingContext(ParseResult)

The binding context for the current invocation.

InvokeAsync(ParseResult, CancellationToken)

Performs an action when the associated symbol is invoked on the command line.

(Inherited from AsynchronousCommandLineAction)

Applies to