ModelMetadata.IsRequired Property
Gets or sets a value that indicates whether the model is required.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
The default value for this property is true for non-nullable value types and false for all other types.
Show: