Validator Members

HttpServer.dll

The Validator type exposes the following members.

Constructors

  NameDescription
ValidatorOverloaded.

Methods

  NameDescription
AddDefaultPhrases
add default language phrases (only english)
AlphaNumeric
Check whether the specified value is an integer.
Boolean
Checks whether a field contains true (can also be in native language).
CharOverloaded.
Contains
Checks wether a string contains a specific character.
DigitsOverloaded.
Email
validates email address using a regexp.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
FormatOverloaded.
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Hex
Validates a string to be in trimmed hex letters
Integer
Check whether the specified value is an integer.
LettersOverloaded.
LettersOrDigits
Validate that a string only contains letters or digits.
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Password
Validate that a string only contains letters or digits or any of the PasswordChars.
Required
Check's weather a parameter is null or not.
SetDefaultMgr
Set default language.
String
Validate a string parameter in the form
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
_errors
A list with all errors found.
_modelLang
Language translation for all "name" parameters.
_validatorLang
Language for the validator (i.e. "Field {0} is required.")
EmailRegEx
Regex used to validate emails.
FieldAlphaNumeric
'{0}' may only contain writable characters.
FieldBoolean
'{0}' must be {1} or {2}.
FieldDigits
'{0}' may only contain digits
FieldDigitsExtra
'{0}' may only contain digits and the following characters: '{1}'
FieldEmail
'{0}' is not a valid email address.
FieldHex
Name of the string to display when testing hex fail
FieldLetterOrDigit
'{0}' can only contain letter or digits.
FieldLetters
Name of string to display when testing letters fail
FieldLettersSpecial
Name of string to display when testing letters fail
FieldNumber
'{0}' is not a number.
FieldPassword
'{0}' can only contain letter or digits or one of the following chars: {1}
FieldRequired
'{0}' is required.
FieldValueFalse
Used to check if a field is false.
FieldValueTrue
Text: True
Language
Language manager used if no one else have been specified.
PasswordChars
Extra characters that are allowed in passwords.
SpecialLetters
A collection of special letters

Properties

  NameDescription
ContainsErrors
true of validation generated errors.
Errors
Collection of validation errors.

See Also