ModelStateDictionary.AddFormError(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an error message to the model state that is associated with the entire form.
public void AddFormError (string errorMessage);
member this.AddFormError : string -> unit
Public Sub AddFormError (errorMessage As String)
Parameters
- errorMessage
- String
The error message.