Export (0) Print
Expand All

HttpConfigurationExtensions.BindParameter Method

Register that the given parameter type on an Action is to be bound using the model binder.

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

public static void BindParameter(
	this HttpConfiguration configuration,
	Type type,
	IModelBinder binder
)

Parameters

configuration
Type: System.Web.Http.HttpConfiguration

configuration to be updated.

type
Type: System.Type

parameter type that binder is applied to

binder
Type: System.Web.Http.ModelBinding.IModelBinder

a model binder

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpConfiguration. When you use instance method syntax to call this method, omit the first parameter. For more information, see http://msdn.microsoft.com/en-us/library/bb384936(v=vs.108).aspx or http://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).aspx.
Show:
© 2014 Microsoft