CachedDataAnnotationsMetadataAttributes.Required Property
Indicates whether a data field is required.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Property Required As RequiredAttribute Get Protected Set 'Usage Dim instance As CachedDataAnnotationsMetadataAttributes Dim value As RequiredAttribute value = instance.Required instance.Required = value
Property Value
Type: System.ComponentModel.DataAnnotations.RequiredAttributetrue if the field is required; otherwise, false.
Show: