Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ModelState Class

 

Encapsulates the state of model binding to a property of an action-method argument, or to the argument itself.

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

System.Object
  System.Web.Mvc.ModelState

<SerializableAttribute>
Public Class ModelState

NameDescription
System_CAPS_pubmethodModelState()

Initializes a new instance of the ModelState class.

NameDescription
System_CAPS_pubpropertyErrors

Returns a ModelErrorCollection object that contains any errors that occurred during model binding.

System_CAPS_pubpropertyValue

Returns a ValueProviderResult object that encapsulates the value that was being bound during model binding.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2015 Microsoft