DisableModelBindingAttribute Constructor
Definition
- Namespace
- Cuemon.AspNetCore.Mvc.Filters.ModelBinding
- Assemblies
- Cuemon.AspNetCore.Mvc.dll
DisableModelBindingAttribute(Type)
Initializes a new instance of the DisableModelBindingAttribute class.
public DisableModelBindingAttribute(Type valueProviderFactoryType)
Parameters
valueProviderFactoryTypeTypeThe type that needs to be disabled on class or method level.
Exceptions
- ArgumentNullException
valueProviderFactoryTypecannot be null.- NotSupportedException
Only a type that implements the IValueProviderFactory interface is supported.