Share via


ValidationMetadata.IsRequired Property

Definition

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)

Property Value

Applies to