DataAnnotationsModelValidator.IsRequired Property

Visual Studio 2010

Gets a value that indicates whether model validation is required.

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

No code example is currently available or this language may not be supported.

Property Value

Type: System.Boolean
true if model validation is required; otherwise, false.

For more information model validation, see the entry Input Validation vs. Model Validation in ASP.NET MVC on Brad Wilson's blog.

Community Additions

ADD
Show: