Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the model state after the model binding process.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public ReadOnly Property ModelState As ModelStateDictionary
Get
'Usage
Dim instance As ApiController
Dim value As ModelStateDictionary
value = instance.ModelState
public ModelStateDictionary ModelState { get; }
public:
property ModelStateDictionary^ ModelState {
ModelStateDictionary^ get ();
}
member ModelState : ModelStateDictionary
function get ModelState () : ModelStateDictionary
Property Value
Type: System.Web.Http.ModelBinding.ModelStateDictionary
The model state after the model binding process.
Remarks
ModelState will be empty before model binding happens. Please do not populate this property other than for unit testing purpose.