CachedDataAnnotationsMetadataAttributes.Required Property

Indicates whether a data field is required.

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

function get Required () : RequiredAttribute 
protected function set Required (value : RequiredAttribute)

Property Value

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