ModelStateDictionary.AddModelError Method (String, String)
.NET Framework (current version)
Adds the specified model error to the errors collection using the specified key and using the specified error message string for the value.
Assembly: System.Web (in System.Web.dll)
| Exception | Condition |
|---|---|
| ArgumentNullException | The key parameter is null. |
.NET Framework
Available since 4.5
Available since 4.5
Show: