C# Class Castle.Components.Validator.ValidateCollectionNotEmptyAttribute

Validates that the collection is not empty
Inheritance: Castle.Components.Validator.AbstractValidationAttribute
Mostrar archivo Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
Build ( ) : IValidator

Constructs and configures an T:Castle.Components.Validator.IValidator instance based on the properties set on the attribute instance.

ValidateCollectionNotEmptyAttribute ( )

Initializes a new instance of the ValidateCollectionNotEmptyAttribute class.

ValidateCollectionNotEmptyAttribute ( string errorMessage )

Initializes a new instance of the ValidateCollectionNotEmptyAttribute class.

Method Details

Build() public method

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

ValidateCollectionNotEmptyAttribute() public method

Initializes a new instance of the ValidateCollectionNotEmptyAttribute class.

ValidateCollectionNotEmptyAttribute() public method

Initializes a new instance of the ValidateCollectionNotEmptyAttribute class.
public ValidateCollectionNotEmptyAttribute ( string errorMessage )
errorMessage string The error message.