.NET Framework Class Library
DataAnnotationsModelValidatorProvider.AddImplicitRequiredAttributeForValueTypes Property
Gets or sets a value that indicates whether non-nullable value types are required.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
Visual Basic
Public Shared Property AddImplicitRequiredAttributeForValueTypes As Boolean Get Set
C#
public static bool AddImplicitRequiredAttributeForValueTypes { get; set; }
Visual C++
public: static property bool AddImplicitRequiredAttributeForValueTypes { bool get (); void set (bool value); }
Remarks
This property can be used when multiple validation providers are registered in order to disable implicitly required constraints for a provider.
See Also