Udostępnij za pośrednictwem


ModelStateDictionary.AddFormError(String) Metoda

Definicja

Dodaje komunikat o błędzie do stanu modelu, który jest skojarzony z całym formularzem.

public void AddFormError (string errorMessage);
member this.AddFormError : string -> unit
Public Sub AddFormError (errorMessage As String)

Parametry

errorMessage
String

Komunikat o błędzie.

Dotyczy