CachedDataAnnotationsMetadataAttributes.Required Property

Indicates whether a data field is required.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

member Required : RequiredAttribute with get, set

Property Value

Type: System.ComponentModel.DataAnnotations.RequiredAttribute
true if the field is required; otherwise, false.
Show: