DataAnnotationsModelValidator.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 a value that indicates whether model validation is required.
public override bool IsRequired { get; }
member this.IsRequired : bool
Public Overrides ReadOnly Property IsRequired As Boolean
Property Value
true if model validation is required; otherwise, false.