| Visual Basic (Declaration) | |
|---|---|
Public ReadOnly Property Status As ValidationStatus | |
| C# | |
|---|---|
public ValidationStatus Status {get;} | |
When a control or embeddable editor is validated, and validation succeeds, the Status property returns 'Valid'. When the validation fails, a value is returned which describes the reason for the failure. If the IsRequired property reutrns true, and the value is null as defined by EmptyValueCriteria, no other validation criteria is considered and the Status property returns 'ValueNullOrEmpty'. If the DataType property is explicitly set, and the value to be validated could not be converted to a value of that type, no other validation criteria is considered and the Status property returns 'ConversionFailure'. In the case where the entity being validated is an embeddable editor, and that editor's IsValid property returns false, no other validation criteria is considered and the Status property returns 'EditorValueInvalid'. If the validation proceeds past the above mentioned checks, and validation then fails because of the criteria defined by the Condition property, the Status property returns 'ConditionFailure'.