Export (0) Print
Expand All

Controller.Binders Property

Gets or sets the binder.

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

'Declaration
Protected Friend Property Binders As ModelBinderDictionary
	Get
	Set
'Usage
Dim value As ModelBinderDictionary

value = Me.Binders

Me.Binders = value

Property Value

Type: System.Web.Mvc.ModelBinderDictionary
The binder.

The setter supports unit-testing scenarios and is not intended to be called from user code. This property is provided so that you can create unit tests for form-post scenarios that call the UpdateModel and TryUpdateModel methods. If you are testing UpdateModel and TryUpdateModel, you can set the Binders property to a mock version of the ModelBinderDictionary object instead of testing the global Binders collection.

Community Additions

Show:
© 2015 Microsoft