ModelBinderFactoryContext Class

A context object for Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactory.CreateBinder(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactoryContext).

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

Syntax

public class ModelBinderFactoryContext
class Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactoryContext

Properties

Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactoryContext.BindingInfo

Gets or sets the Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo.

Return type:Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo
public BindingInfo BindingInfo { get; set; }
Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactoryContext.CacheToken

Gets or sets the cache token. If <code>non-null</code> the resulting Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder will be cached.

Return type:System.Object
public object CacheToken { get; set; }
Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderFactoryContext.Metadata

Gets or sets the Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata.

Return type:Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
public ModelMetadata Metadata { get; set; }