ModelBinderProviderContext.CreateBinder 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
CreateBinder(ModelMetadata) |
Creates an IModelBinder for the given |
CreateBinder(ModelMetadata, BindingInfo) |
Creates an IModelBinder for the given |
CreateBinder(ModelMetadata)
Creates an IModelBinder for the given metadata
.
public:
abstract Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ CreateBinder(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata);
public abstract Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder CreateBinder (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata);
abstract member CreateBinder : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata -> Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
Public MustOverride Function CreateBinder (metadata As ModelMetadata) As IModelBinder
Parameters
- metadata
- ModelMetadata
The ModelMetadata for the model.
Returns
An IModelBinder.
Applies to
CreateBinder(ModelMetadata, BindingInfo)
Creates an IModelBinder for the given metadata
and bindingInfo
.
public:
virtual Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder ^ CreateBinder(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, Microsoft::AspNetCore::Mvc::ModelBinding::BindingInfo ^ bindingInfo);
public virtual Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder CreateBinder (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo bindingInfo);
abstract member CreateBinder : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo -> Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
override this.CreateBinder : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo -> Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
Public Overridable Function CreateBinder (metadata As ModelMetadata, bindingInfo As BindingInfo) As IModelBinder
Parameters
- metadata
- ModelMetadata
The ModelMetadata for the model.
- bindingInfo
- BindingInfo
The BindingInfo that should be used for creating the binder.
Returns
An IModelBinder.