ModelStateDictionary::AddModelError Method
Adds a model error to the errors collection for the model-state dictionary.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | AddModelError(String^, Exception^) | Adds the specified model error to the errors collection for the model-state dictionary that is associated with the specified key. |
![]() | AddModelError(String^, String^) | Adds the specified error message to the errors collection for the model-state dictionary that is associated with the specified key. |
ModelStateDictionary::AddModelError Method (String^, Exception^)
Adds the specified model error to the errors collection for the model-state dictionary that is associated with the specified key.
ModelStateDictionary::AddModelError Method (String^, String^)
Adds the specified error message to the errors collection for the model-state dictionary that is associated with the specified key.
Show:
