Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

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)
'Declaration
Public ReadOnly Property ModelState As ModelStateDictionary
	Get
'Usage
Dim instance As ApiController
Dim value As ModelStateDictionary

value = instance.ModelState

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.