ModelStateDictionary.AddModelError Method (String, Exception)
.NET Framework (current version)
Adds a model error to the errors collection using the specified key and using the specified exception 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: