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

DataAnnotationsModelValidatorProvider.AddImplicitRequiredAttributeForValueTypes Property

.NET Framework 4

Gets or sets a value that indicates whether non-nullable value types are required.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public static bool AddImplicitRequiredAttributeForValueTypes { get; set; }

Property Value

Type: System.Boolean
true if non-nullable value types are required; otherwise, false.

This property can be used when multiple validation providers are registered in order to disable implicitly required constraints for a provider.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.