ModelMetadata.IsRequired ModelMetadata.IsRequired ModelMetadata.IsRequired Property

Definition

Gets or sets a value that indicates whether the model is required.

public virtual bool IsRequired { get; set; }
member this.IsRequired : bool with get, set
Public Overridable Property IsRequired As Boolean

Property Value

true if the model is required; otherwise, false.

Applies to