Share via


ModelStateDictionary.IsValid Property

Gets a value that indicates whether this instance of the model-state dictionary is valid.

Namespace:  System.Web.Http.ModelBinding
Assembly:  System.Web.Http (in System.Web.Http.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 this instance is valid; otherwise, false.

See Also

Reference

ModelStateDictionary Class

System.Web.Http.ModelBinding Namespace