Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines validation tests that can be registered using the ValidationHelper.Add method.
Inheritance Hierarchy
System.Object
System.Web.WebPages.Validator
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public MustInherit Class Validator
'Usage
Dim instance As Validator
public abstract class Validator
public ref class Validator abstract
[<AbstractClassAttribute>]
type Validator = class end
public abstract class Validator
The Validator type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
Validator | Initializes a new instance of the Validator class. |
Top
Methods
| Name | Description | |
|---|---|---|
![]() ![]() |
DateTime | Defines a validation test that tests whether a value can be treated as a date/time value. |
![]() ![]() |
Decimal | Defines a validation test that tests whether a value can be treated as a decimal number. |
![]() |
Equals | (Inherited from Object.) |
![]() ![]() |
EqualsTo | Defines a validation test that test user input against the value of another field. |
![]() |
Finalize | (Inherited from Object.) |
![]() ![]() |
Float | Defines a validation test that tests whether a value can be treated as a floating-point number. |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() ![]() |
Integer | Defines a validation test that tests whether a value can be treated as an integer. |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() ![]() |
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 | Defines a validation test that tests a value against a pattern specified as a regular expression. |
![]() ![]() |
Required | Defines a validation test that tests whether a value has been provided. |
![]() ![]() |
StringLength | Defines a validation test that tests the length of a string. |
![]() |
ToString | (Inherited from Object.) |
![]() ![]() |
Url | Defines a validation test that tests whether a value is a well-formed URL. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.jpeg)
.jpeg)
.gif)