ModelStateDictionary.Clear Method ()

 

Removes all items from the model-state dictionary.

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

Syntax

public void Clear()
public:
virtual void Clear() sealed
abstract Clear : unit -> unit
override Clear : unit -> unit
Public Sub Clear

Implements

ICollection<T>.Clear()

Exceptions

Exception Condition
NotSupportedException

The model-state dictionary is read-only.

See Also

ModelStateDictionary Class
System.Web.Mvc Namespace

Return to top