C# Class Castle.Components.Validator.ValidateSetAttribute

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.

ValidateSetAttribute ( ) : System

Initializes a new instance of the ValidateSetAttribute class.

ValidateSetAttribute ( Type type ) : System

Initializes a new instance of the ValidateSetAttribute class.

ValidateSetAttribute ( Type type, string errorMessage ) : System

Initializes a new instance of the ValidateSetAttribute class.

ValidateSetAttribute ( string errorMessage ) : System

Initializes a new instance of the ValidateSetAttribute 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

ValidateSetAttribute() public method

Initializes a new instance of the ValidateSetAttribute class.
public ValidateSetAttribute ( ) : System
return System

ValidateSetAttribute() public method

Initializes a new instance of the ValidateSetAttribute class.
public ValidateSetAttribute ( Type type ) : System
type System.Type The of an enum class. /// The enum names will be added to the contents of the set.
return System

ValidateSetAttribute() public method

Initializes a new instance of the ValidateSetAttribute class.
public ValidateSetAttribute ( Type type, string errorMessage ) : System
type System.Type The of an enum class. /// The enum names will be added to the contents of the set.
errorMessage string The error message to be displayed if the validation fails.
return System

ValidateSetAttribute() public method

Initializes a new instance of the ValidateSetAttribute class.
public ValidateSetAttribute ( string errorMessage ) : System
errorMessage string The error message to be displayed if the validation fails.
return System