이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

Controller.Binders Property


Gets or sets the binder.

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

protected internal ModelBinderDictionary Binders { get; set; }

Property Value

Type: System.Web.Mvc.ModelBinderDictionary

The binder.

The setter for this property 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 TryUpdateModel and UpdateModel methods. If you are testing the TryUpdateModel and UpdateModel methods, you can set the Binders property to a mock version of the ModelBinderDictionary object instead of testing the global Binders collection.

Return to top