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);

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);

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