Table of Contents

DisableModelBindingAttribute Constructor

Definition

DisableModelBindingAttribute(Type)

Initializes a new instance of the DisableModelBindingAttribute class.

public DisableModelBindingAttribute(Type valueProviderFactoryType)

Parameters

valueProviderFactoryType Type

The type that needs to be disabled on class or method level.

Exceptions

ArgumentNullException

valueProviderFactoryType cannot be null.

NotSupportedException

Only a type that implements the IValueProviderFactory interface is supported.