Share via


ModelBinderProviderContext.CreateBinder Method

Definition

Overloads

CreateBinder(ModelMetadata)

Creates an IModelBinder for the given metadata.

CreateBinder(ModelMetadata, BindingInfo)

Creates an IModelBinder for the given metadata and bindingInfo.

CreateBinder(ModelMetadata)

Source:
ModelBinderProviderContext.cs
Source:
ModelBinderProviderContext.cs
Source:
ModelBinderProviderContext.cs

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)

Source:
ModelBinderProviderContext.cs
Source:
ModelBinderProviderContext.cs
Source:
ModelBinderProviderContext.cs

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.

Applies to