ModelBinderAttribute Class
TOC
Collapse the table of content
Expand the table of content

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 : CustomModelBinderAttribute

NameDescription
System_CAPS_pubmethodModelBinderAttribute(Type^)

Initializes a new instance of the ModelBinderAttribute class.

NameDescription
System_CAPS_pubpropertyBinderType

Gets or sets the type of the binder.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Attribute.)

System_CAPS_pubmethodGetBinder()

Retrieves an instance of the model binder.(Overrides CustomModelBinderAttribute::GetBinder().)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object^)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

For more information about using attributes, see .

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

Return to top
Show:
© 2016 Microsoft