ModelValidationState Enum

Definition

The validation state of a ModelStateEntry instance.

ModelValidationState of Root is used to determine the validity of ModelStateDictionary. IsValid is true, when the aggregate validity (GetFieldValidationState(String)) of the root node is Valid.

public enum class ModelValidationState
public enum ModelValidationState
type ModelValidationState = 
Public Enum ModelValidationState
Inheritance
ModelValidationState

Fields

Invalid 1

Validation was performed on the ModelStateEntry and was found to be invalid.

For aggregate validity, the validation of a ModelStateEntry is Invalid if either the entry or one of the descendants is Invalid and none are Unvalidated.

Skipped 3

Validation was skipped for the ModelStateEntry.

The aggregate validity of an entry is never Skipped.

Unvalidated 0

Validation has not been performed on the ModelStateEntry.

For aggregate validity, the validation of a ModelStateEntry is Unvalidated if either the entry or one of thedescendants is Unvalidated.

Valid 2

Validation was performed on the ModelStateEntry

For aggregate validity, the validation of a ModelStateEntry is Valid if the validity of the entry and all descendants is either Valid or Skipped.

Applies to