Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ModelBinderAttribute.GetModelBinder Method (HttpConfiguration, Type)

 

Get the IModelBinder for this type.

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

public IModelBinder GetModelBinder(
	HttpConfiguration configuration,
	Type modelType
)

Parameters

configuration
Type: System.Web.Http.HttpConfiguration

The configuration.

modelType
Type: System.Type

model type that the binder is expected to bind.

Return Value

Type: System.Web.Http.ModelBinding.IModelBinder

a non-null model binder.

Return to top
Show:
© 2015 Microsoft