ModelStateDictionary.AddFormError Method
Adds an error message to the model state that is associated with the entire form.
Namespace: System.Web.WebPages.Html
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public Sub AddFormError ( _
errorMessage As String _
)
'Usage
Dim instance As ModelStateDictionary
Dim errorMessage As String
instance.AddFormError(errorMessage)
public void AddFormError(
string errorMessage
)
public:
void AddFormError(
String^ errorMessage
)
member AddFormError :
errorMessage:string -> unit
public function AddFormError(
errorMessage : String
)
Parameters
- errorMessage
Type: System.String
The error message.