ModelValidationState Enum
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.
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
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. |
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. |
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. |
Skipped | 3 | Validation was skipped for the ModelStateEntry. The aggregate validity of an entry is never Skipped. |