ValidationMetadata Class

Definition

Validation metadata details for a ModelMetadata.

public ref class ValidationMetadata
public class ValidationMetadata
type ValidationMetadata = class
Public Class ValidationMetadata
Inheritance
ValidationMetadata

Constructors

ValidationMetadata()

Properties

HasValidators

Gets a value that indicates if the model has validators .

IsRequired

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.

PropertyValidationFilter

Gets or sets an IPropertyValidationFilter implementation that indicates whether this model should be validated. See PropertyValidationFilter.

ValidateChildren

Gets or sets a value that indicates whether children of the model should be validated. If null then ValidateChildren will be true if either of IsComplexType or IsEnumerableType is true; false otherwise.

ValidationModelName

Gets or sets a model name that will be used in ValidationEntry.

ValidatorMetadata

Gets a list of metadata items for validators.

Applies to