CachedDataAnnotationsMetadataAttributes.Required Property

 

Indicates whether a data field is required.

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

Public Property Required As RequiredAttribute
	Get
	Protected Set
End Property

Property Value

Type: System.ComponentModel.DataAnnotations.RequiredAttribute

true if the field is required; otherwise, false.

Return to top
Show: