ModelStateDictionary.ErrorCount 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 the number of errors added to this instance of ModelStateDictionary via AddModelError or TryAddModelError.
public:
 property int ErrorCount { int get(); };public int ErrorCount { get; }member this.ErrorCount : intPublic ReadOnly Property ErrorCount As Integer