ModelError Constructor (String)
Initializes a new instance of the ModelError class by using the specified error message.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Sub New ( _
errorMessage As String _
)
public ModelError(
string errorMessage
)
public:
ModelError(
String^ errorMessage
)
Parameters
- errorMessage
Type: System.String
The error message.