Validator Class

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
Protected method Validator Initializes a new instance of the Validator class.

Top

Methods

  Name Description
Public methodStatic member DateTime Defines a validation test that tests whether a value can be treated as a date/time value.
Public methodStatic member Decimal Defines a validation test that tests whether a value can be treated as a decimal number.
Public method Equals (Inherited from Object.)
Public methodStatic member EqualsTo Defines a validation test that test user input against the value of another field.
Protected method Finalize (Inherited from Object.)
Public methodStatic member Float Defines a validation test that tests whether a value can be treated as a floating-point number.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public methodStatic member Integer Defines a validation test that tests whether a value can be treated as an integer.
Protected method MemberwiseClone (Inherited from Object.)
Public methodStatic member Range(Double, Double, String) Defines a validation test that tests whether a decimal number falls within a specific range.
Public methodStatic member Range(Int32, Int32, String) Defines a validation test that tests whether an integer value falls within a specific range.
Public methodStatic member Regex Defines a validation test that tests a value against a pattern specified as a regular expression.
Public methodStatic member Required Defines a validation test that tests whether a value has been provided.
Public methodStatic member StringLength Defines a validation test that tests the length of a string.
Public method ToString (Inherited from Object.)
Public methodStatic member 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.

See Also

Reference

System.Web.WebPages Namespace