Validator Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines validation tests that can be registered using the Add(String, IValidator[]) method.
public abstract class Validator
type Validator = class
Public MustInherit Class Validator
- Inheritance
-
Validator
Constructors
Validator() |
Initializes a new instance of the Validator class. |
Methods
DateTime(String) |
Defines a validation test that tests whether a value can be treated as a date/time value. |
Decimal(String) |
Defines a validation test that tests whether a value can be treated as a decimal number. |
EqualsTo(String, String) |
Defines a validation test that test user input against the value of another field. |
Float(String) |
Defines a validation test that tests whether a value can be treated as a floating-point number. |
Integer(String) |
Defines a validation test that tests whether a value can be treated as an integer. |
Range(Double, Double, String) |
Defines a validation test that tests whether a decimal number falls within a specific range. |
Range(Int32, Int32, String) |
Defines a validation test that tests whether an integer value falls within a specific range. |
Regex(String, String) |
Defines a validation test that tests a value against a pattern specified as a regular expression. |
Required(String) |
Defines a validation test that tests whether a value has been provided. |
StringLength(Int32, Int32, String) |
Defines a validation test that tests the length of a string. |
Url(String) |
Defines a validation test that tests whether a value is a well-formed URL. |