ModelStateDictionary::AddModelError Method
.NET Framework (current version)
Adds a model error to the errors collection.
Assembly: System.Web (in System.Web.dll)
| Name | Description | |
|---|---|---|
![]() | AddModelError(String^, Exception^) | Adds a model error to the errors collection using the specified key and using the specified exception for the value. |
![]() | AddModelError(String^, String^) | Adds the specified model error to the errors collection using the specified key and using the specified error message string for the value. |
Show:
