Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DataAnnotationsModelValidator.IsRequired Property

Gets a value that indicates whether model validation is required.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public override bool IsRequired { get; }

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.