Поделиться через


ModelStateDictionary.IsValid Property

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

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

Syntax

'Declaration
Public ReadOnly Property IsValid As Boolean
    Get
public bool IsValid { get; }
public:
property bool IsValid {
    bool get ();
}

Property Value

Type: System.Boolean
true if this instance is valid; otherwise, false.

See Also

Reference

ModelStateDictionary Class

System.Web.Mvc Namespace