Version

Status Property (ValidationResult)

Returns a ValidationStatus constant which describes a control or embeddable editor's current validation status.
Syntax
'Declaration
 
Public ReadOnly Property Status As ValidationStatus
public ValidationStatus Status {get;}
Remarks

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'.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also