Validation functionality.

Depending on the value of Runtime.Trace.ValidationErrorLevel, a Runtime Error may be thrown if the value passed to one of the Validate methods in this class does not conform to the expected ranges.

Methods

Name Description
CompareByteArrays Compares two Byte Arrays and returns True if they are identical.
IsValidAUBusinessNumber Returns True if the supplied ABN's format is valid.
IsValidAUCompanyNumber Returns True if the supplied ACN's format is valid.
IsValidEmailAddress Returns True if the supplied Email Address is valid.
IsValidGlobalLocationNumber Returns True if the supplied Global Location Number (GLN) is valid.
IsValidGuid Returns True if the supplied Guid is valid.
IsValidNZBusinessNumber Returns True if the supplied NZBN's format is valid.
IsValidNZCompanyNumber Returns True if the supplied NZ Company Number's format is valid.
IsValidPhoneNumber Returns True if the supplied Phone Number is valid.
IsValidUri Returns True if the supplied value is a valid URI.
IsValidVIN Returns True if the supplied Vehicle Identification Number (VIN) is valid.
ValidateCurrency
ValidateDate Strip out the Time portion of a Date.
ValidateDateTime Round a date and time to remove fractions of a second and returns the DateTimeKind as 'Unspecified'.
ValidateDecimal
ValidateDouble
ValidateEnum
ValidateEnumFlags
ValidateInteger
ValidateSingle
ValidateString Validate a String returning an updated value. Trailing spaces are always removed.
ValidateStringAsciiPrintable Validates a String, returning a String excluding non-printable ACSII characters (except vbCrLf if allowNewLines=True).
ValidateText Validate a String returning an updated value.
ValidateTime
ValidateTimeZoneId
ValidateUtcDateTime Round a UTC date and time to remove fractions of a second and returns the DateTimeKind as 'Utc'.
ValidateVin Validates a Vehicle Identification Number (VIN).
Namespace:
Intersoft.ISRuntime6
Assembly:
ISRuntime6, Version=6.0.3
Target Framework:
.NET 9.0