ModelBindingCommandHandler Class
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.
Instantiates values to be passed to a user-defined command handler method.
public ref class ModelBindingCommandHandler : System::CommandLine::NamingConventionBinder::BindingHandler
public class ModelBindingCommandHandler : System.CommandLine.NamingConventionBinder.BindingHandler
type ModelBindingCommandHandler = class
inherit BindingHandler
Public Class ModelBindingCommandHandler
Inherits BindingHandler
- Inheritance
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 |
|---|---|
| BindParameter(ParameterInfo, Argument) |
Binds a method or constructor parameter based on the specified Argument. |
| BindParameter(ParameterInfo, Option) |
Binds a method or constructor parameter based on the specified Option. |
| GetBindingContext(ParseResult) |
The binding context for the current invocation. (Inherited from BindingHandler) |
| InvokeAsync(ParseResult, CancellationToken) |
Binds values for the underlying user-defined method and uses them to invoke that method. |