ModelStateDictionary.IsValid Property

Gets a value that indicates whether any error messages are associated with any model state in the model-state dictionary.

Namespace:  System.Web.WebPages.Html
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
Public ReadOnly Property IsValid As Boolean 
    Get
'Usage
Dim instance As ModelStateDictionary 
Dim value As Boolean 

value = instance.IsValid
public bool IsValid { get; }
public:
property bool IsValid {
    bool get ();
}
member IsValid : bool
function get IsValid () : boolean

Property Value

Type: System.Boolean
true if any error messages are associated with any model state in the dictionary; otherwise, false.

See Also

Reference

ModelStateDictionary Class

System.Web.WebPages.Html Namespace