RegexValidator Class Breeze.sharp
Validator implementation that determines if a given property matches a predefined regular expression pattern.
Inheritance Hierarchy

SystemObject
  Breeze.SharpInternable
    Breeze.SharpValidator
      Breeze.SharpRegexValidator
        Breeze.SharpEmailValidator
        Breeze.SharpPhoneNumberValidator
        Breeze.SharpUrlValidator

Namespace: Breeze.Sharp
Assembly: Breeze.Sharp (in Breeze.Sharp.dll) Version: 0.6.0.5 (0.6.0.5)
Syntax

public class RegexValidator : Validator

The RegexValidator type exposes the following members.

Constructors

  NameDescription
Public methodRegexValidator(String, String)
Ctor.
Public methodRegexValidator(Regex, String)
Ctor
Top
Methods

  NameDescription
Public methodEquals (Inherited from Internable.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetErrorMessage
Provides the error message associated with a failure of this validator.
(Overrides ValidatorGetErrorMessage(ValidationContext).)
Public methodGetHashCode (Inherited from Internable.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate
Performs validation given a specified context.
(Inherited from Validator.)
Protected methodValidateCore
Provides the core validation logic to this validator.
(Overrides ValidatorValidateCore(ValidationContext).)
Top
Fields

  NameDescription
Public fieldPatternName
Display name for this pattern in any errorMessage.
Top
Properties

  NameDescription
Public propertyLocalizedKey (Inherited from Validator.)
Public propertyLocalizedMessage (Inherited from Validator.)
Public propertyName (Inherited from Internable.)
Public propertyRegex
The Regex1 pattern to match.
Top
See Also

Reference