Version

ValidateAsType Enumeration

Used to specify how the ValueConstraint class should validate a value. Each of these values represents a data type which has implicit constraints, such as a minimal value, etc. Those constraints are used by the ValueConstraint.Validate method to enforce data validity.
Syntax
'Declaration
 
Public Enum ValidateAsType 
   Inherits System.Enum
public enum ValidateAsType : System.Enum 
Members
MemberDescription
BooleanRepresents a value which can either be true or false. Corresponds to System.Boolean.
ByteRepresents a signed byte. Corresponds to System.SByte.
DateTimeRepresents a date and time. Corresponds to System.DateTime.
DecimalRepresents a high precision floating point value. Corresponds to System.Decimal.
DoubleRepresents a high magnitude floating point value. Corresponds to System.Double.
FloatRepresents a floating point value. Corresponds to System.Single.
Integer16Represents a signed 16 bit integral value. Corresponds to System.Int16.
Integer32Represents a signed 32 bit integral value. Corresponds to System.Int32.
Integer64Represents a signed 64 bit integral value. Corresponds to System.Int64.
NegativeInteger64Represents a signed 64 bit integral number whose maximal value is -1, inclusive. Corresponds to System.Int64.
NonNegativeInteger64Represents a signed 64 bit integral number whose minimal value is 0, inclusive. Corresponds to System.Int64.
NonPositiveInteger64Represents a signed 64 bit integral number whose maximal value is 0, inclusive. Corresponds to System.Int64.
PositiveInteger64Represents a signed 64 bit integral number whose minimal value is -1, inclusive. Corresponds to System.Int64.
TextRepresents textual data. Corresponds to System.String.
TimeSpanRepresents a length of time. Corresponds to System.TimeSpan.
UnknownRepresents an unrecognized or unspecified type.
UnsignedByteRepresents an unsigned byte value. Corresponds to System.Byte.
UnsignedInteger16Represents an unsigned 16 bit number. Corresponds to System.UInt16.
UnsignedInteger32Represents an unsigned 32 bit number. Corresponds to System.UInt32.
UnsignedInteger64Represents an unsigned 64 bit number. Corresponds to System.UInt64.
UriRepresents a Uniform Resource Identifier. Corresponds to System.Uri.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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