ModelStateDictionary.IsValid Property

.NET Framework (current version)
 

Gets a value that indicates whether there are any errors in any of the model state objects in the dictionary.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

public bool IsValid { get; }

Property Value

Type: System.Boolean

false if any errors were found; otherwise, true.

.NET Framework
Available since 4.5
Return to top
Show: