This documentation is archived and is not being maintained.
DataAnnotationsModelValidatorProvider.AddImplicitRequiredAttributeForValueTypes Property
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.Booleantrue 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.