Export (0) Print
Expand All

ApiController.ModelState Property

Gets the model state after the model binding process.

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

function get ModelState () : ModelStateDictionary

Property Value

Type: System.Web.Http.ModelBinding.ModelStateDictionary
The model state after the model binding process.

ModelState will be empty before model binding happens. Please do not populate this property other than for unit testing purpose.

Show:
© 2015 Microsoft