ModelStateDictionary.IsValid Property
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.
Gets a value that indicates whether any error messages are associated with any model state in the model-state dictionary.
public bool IsValid { get; }
member this.IsValid : bool
Public ReadOnly Property IsValid As Boolean
Property Value
true if any error messages are associated with any model state in the dictionary; otherwise, false.