ModelMetadata.HasValidators Property

Definition

Gets a value that indicates if the model, or one of its properties or elements, has associated validators.

C#
public virtual bool? HasValidators { get; }

Property Value

Remarks

When false, validation can be assume that the model is valid (Valid) without inspecting the object graph.

Applies to

Product Versions
ASP.NET Core 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0