Export (0) Print
Expand All

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)

[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Parameter, Inherited = true, 
	AllowMultiple = false)]
public class ModelBinderAttribute : ParameterBindingAttribute

The ModelBinderAttribute type exposes the following members.

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

  NameDescription
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.)
Top

  NameDescription
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.)
Top

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