Class ModelState
public sealed class ModelState
- Inheritance
-
objectModelState
Properties
Errors
public List<ModelValidationResults.Result> Errors { get; }
Property Value
IsValid
public bool IsValid { get; set; }
Property Value
Methods
AddModelError(string, string, List<string>)
Adds the specified errorMessage to the Errors list
public void AddModelError(string errorMessage, string path = null, List<string> memberNames = null)