Valoda

ModelBindingCommandHandler.BindParameter Method

Definition

Overloads

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.

BindParameter(ParameterInfo, Argument)

Source:
ModelBindingCommandHandler.cs

Binds a method or constructor parameter based on the specified Argument.

public:
 void BindParameter(System::Reflection::ParameterInfo ^ param, System::CommandLine::Argument ^ argument);
public void BindParameter(System.Reflection.ParameterInfo param, System.CommandLine.Argument argument);
member this.BindParameter : System.Reflection.ParameterInfo * System.CommandLine.Argument -> unit
Public Sub BindParameter (param As ParameterInfo, argument As Argument)

Parameters

param
ParameterInfo

The parameter to bind.

argument
Argument

The argument whose parsed result will be the source of the bound value.

Applies to

BindParameter(ParameterInfo, Option)

Source:
ModelBindingCommandHandler.cs

Binds a method or constructor parameter based on the specified Option.

public:
 void BindParameter(System::Reflection::ParameterInfo ^ param, System::CommandLine::Option ^ option);
public void BindParameter(System.Reflection.ParameterInfo param, System.CommandLine.Option option);
member this.BindParameter : System.Reflection.ParameterInfo * System.CommandLine.Option -> unit
Public Sub BindParameter (param As ParameterInfo, option As Option)

Parameters

param
ParameterInfo

The parameter to bind.

option
Option

The option whose parsed result will be the source of the bound value.

Applies to