ModelValidator.IsRequired Property

Definition

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

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

Property Value

true if the model property is required; otherwise, false.

Applies to