C# Class Castle.Components.Validator.ValidateRegExpAttribute

Inheritance: Castle.Components.Validator.AbstractValidationAttribute
Show file Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
Build ( ) : IValidator

Constructs and configures an IValidator instance based on the properties set on the attribute instance.

ValidateRegExpAttribute ( String pattern ) : System

Initializes a new instance of the ValidateRegExpAttribute class.

ValidateRegExpAttribute ( String pattern, String errorMessage ) : System

Initializes a new instance of the ValidateRegExpAttribute class.

Method Details

Build() public method

Constructs and configures an IValidator instance based on the properties set on the attribute instance.
public Build ( ) : IValidator
return IValidator

ValidateRegExpAttribute() public method

Initializes a new instance of the ValidateRegExpAttribute class.
public ValidateRegExpAttribute ( String pattern ) : System
pattern String The pattern.
return System

ValidateRegExpAttribute() public method

Initializes a new instance of the ValidateRegExpAttribute class.
public ValidateRegExpAttribute ( String pattern, String errorMessage ) : System
pattern String The pattern.
errorMessage String The error message.
return System