Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ModelBinderAttribute Class

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

NameDescription
System_CAPS_pubmethodModelBinderAttribute()

Initializes a new instance of the ModelBinderAttribute class.

System_CAPS_pubmethodModelBinderAttribute(Type)

Initializes a new instance of the ModelBinderAttribute class.

NameDescription
System_CAPS_pubpropertyBinderType

Gets or sets the type of model binder.

System_CAPS_pubpropertyName

Gets or sets the name to consider as the parameter name during model binding.

System_CAPS_pubpropertySuppressPrefixCheck

Gets or sets a value that specifies whether the prefix check should be suppressed.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetBinding(HttpParameterDescriptor)

Gets the binding for a parameter.(Overrides ParameterBindingAttribute.GetBinding(HttpParameterDescriptor).)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetModelBinder(HttpConfiguration, Type)

Get the IModelBinder for this type.

System_CAPS_pubmethodGetModelBinderProvider(HttpConfiguration)

Gets the model binder provider.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetValueProviderFactories(HttpConfiguration)

Gets the value providers that will be fed to the model binder.

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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:
© 2015 Microsoft