Export (0) Print
Expand All

ModelBinderAttribute Class

Represents an attribute that is used to associate a model type to a model-builder type.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Struct|AttributeTargets::Enum|AttributeTargets::Interface|AttributeTargets::Parameter, AllowMultiple = false, 
	Inherited = false)]
public ref class ModelBinderAttribute sealed : public CustomModelBinderAttribute

The ModelBinderAttribute type exposes the following members.

  NameDescription
Public methodModelBinderAttributeInitializes a new instance of the ModelBinderAttribute class.
Top

  NameDescription
Public propertyBinderTypeGets or sets the type of the binder.
Public propertyTypeId (Inherited from Attribute.)
Top

  NameDescription
Public methodEquals (Inherited from Attribute.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBinderRetrieves an instance of the model binder. (Overrides CustomModelBinderAttribute::GetBinder().)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

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

For more information about using attributes, see Extending Metadata Using Attributes.

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