'Declaration Public Property ValidationCriteria As DataValidationCriteria
public DataValidationCriteria ValidationCriteria {get; set;}
Exception | Description |
---|---|
System.ComponentModel.InvalidEnumArgumentException | Occurs when the value is not a member of the DataValidationCriteria enumeration. |
Depending on the value specified, either then cell value or the length of its text equivalent will be compared against the constraint(s). In addition, certain ValidationCriteria values may disallow a cell value even if it is valid when compared to the constraint. For example, the ValidationCriteria.WholeNumber value will not allow any number with a fractional portion.
Target Platforms: Windows 8.1, Windows 8.1, Windows 8, 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
View on GitHub