ModelMetadata.IsRequired Property
.NET Framework (current version)
Gets or sets a value that specifies whether the property is required.
Assembly: System.Web (in System.Web.dll)
Property Value
Type: System.Booleantrue if the property is required; otherwise, false. The default is true for non-nullable value types and false for all other types.
.NET Framework
Available since 4.5
Available since 4.5
Show: