ModelBinderAttribute Class

Specify this parameter uses a model binder. This can optionally specify the specific model binder and value providers that drive that model binder. Derived attributes may provide convenience settings for the model binder or value provider.

Namespace:  System.Web.Http.ModelBinding
Assembly:  System.Web.Http (in System.Web.Http.dll)

public class ModelBinderAttribute extends ParameterBindingAttribute

The ModelBinderAttribute type exposes the following members.

Public methodModelBinderAttribute()Initializes a new instance of the ModelBinderAttribute class.
Public methodModelBinderAttribute(Type)Initializes a new instance of the ModelBinderAttribute class.

Public propertyBinderTypeGets or sets the type of model binder.
Public propertyNameGets or sets the name to consider as the parameter name during model binding.
Public propertySuppressPrefixCheckGets or sets a value that specifies whether the prefix check should be suppressed.
Public propertyTypeId (Inherited from Attribute.)

Public methodEquals (Inherited from Attribute.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBindingGets the binding for a parameter. (Overrides ParameterBindingAttribute.GetBinding(HttpParameterDescriptor).)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetModelBinder Get the IModelBinder for this type.
Public methodGetModelBinderProviderGets the model binder provider.
Public methodGetType (Inherited from Object.)
Public methodGetValueProviderFactories Gets the value providers that will be fed to the model binder.
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)

Explicit interface implemetationPrivate method_Attribute.GetIDsOfNames (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute.GetTypeInfo (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute.GetTypeInfoCount (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute.Invoke (Inherited from Attribute.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.