ModelBindingCommandHandler.BindParameter 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.
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)
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)
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.