CachedDataAnnotationsMetadataAttributes.Required Property

 

Indicates whether a data field is required.

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

public RequiredAttribute Required { get; protected set; }

Property Value

Type: System.ComponentModel.DataAnnotations.RequiredAttribute

true if the field is required; otherwise, false.

Return to top
Show: