ValidationMetadata.IsRequired Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether or not the model is a required value. Will be ignored
if the model metadata being created is not a property. If null
then
IsRequired will be computed based on the model Type.
See IsRequired.
public:
property Nullable<bool> IsRequired { Nullable<bool> get(); void set(Nullable<bool> value); };
public bool? IsRequired { get; set; }
member this.IsRequired : Nullable<bool> with get, set
Public Property IsRequired As Nullable(Of Boolean)