BindingContextExtensions.AddModelBinder(BindingContext, ModelBinder) 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.
Adds a model binder which can be used to bind a specific type.
public:
[System::Runtime::CompilerServices::Extension]
static void AddModelBinder(System::CommandLine::Binding::BindingContext ^ bindingContext, System::CommandLine::NamingConventionBinder::ModelBinder ^ binder);
public static void AddModelBinder(this System.CommandLine.Binding.BindingContext bindingContext, System.CommandLine.NamingConventionBinder.ModelBinder binder);
static member AddModelBinder : System.CommandLine.Binding.BindingContext * System.CommandLine.NamingConventionBinder.ModelBinder -> unit
<Extension()>
Public Sub AddModelBinder (bindingContext As BindingContext, binder As ModelBinder)
Parameters
- bindingContext
- BindingContext
The binding context for the current binding operation.
- binder
- ModelBinder
The model binder to add.