ModelBinderFactory Class

A factory for Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder instances.

Namespace
Microsoft.AspNetCore.Mvc.ModelBinding
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

public class ModelBinderFactory : IModelBinderFactory
class Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory

Constructors

ModelBinderFactory(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions>)

Creates a new Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory.

Arguments:
public ModelBinderFactory(IModelMetadataProvider metadataProvider, IOptions<MvcOptions> options)

Methods

CreateBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactoryContext)
Return type:Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
public IModelBinder CreateBinder(ModelBinderFactoryContext context)