Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ModelBinderProvider.GetBinder Method

Finds a binder for the given type.

Namespace:  System.Web.Http.ModelBinding
Assembly:  System.Web.Http (in System.Web.Http.dll)
'Declaration
Public MustOverride Function GetBinder ( _
	configuration As HttpConfiguration, _
	modelType As Type _
) As IModelBinder
'Usage
Dim instance As ModelBinderProvider 
Dim configuration As HttpConfiguration 
Dim modelType As Type 
Dim returnValue As IModelBinder 

returnValue = instance.GetBinder(configuration, _
	modelType)

Parameters

configuration
Type: System.Web.Http.HttpConfiguration

A configuration object.

modelType
Type: System.Type

The type of the model to bind against.

Return Value

Type: System.Web.Http.ModelBinding.IModelBinder
A binder, which can attempt to bind this type. Or null if the binder knows statically that it will never be able to bind the type.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.