ModelStateDictionary.AddFormError(String) ModelStateDictionary.AddFormError(String) ModelStateDictionary.AddFormError(String) Method

Definition

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 String String

The error message.

Applies to