ModelState ModelState ModelState ModelState Class


Encapsulates the state of model binding.

public ref class ModelState
public class ModelState
type ModelState = class
Public Class ModelState


For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.


ModelState() ModelState() ModelState() ModelState()

Initializes a new instance of the ModelState class.


Errors Errors Errors Errors

Gets a collection of errors that occurred during model binding.

Value Value Value Value

Gets or sets an object that encapsulates the value that was being bound during model binding.


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to