ModelErrorCollection.Add Method (String)
.NET Framework (current version)
Adds a validation error to the collection using the specified error message string.
Assembly: System.Web (in System.Web.dll)
Parameters
- errorMessage
-
Type:
System.String
The error message string.
.NET Framework
Available since 4.5
Available since 4.5
Show: