C# Class Castle.Components.Validator.ValidateCollectionNotEmptyAttribute

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

Méthodes publiques

Méthode 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 méthode

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

ValidateCollectionNotEmptyAttribute() public méthode

Initializes a new instance of the ValidateCollectionNotEmptyAttribute class.

ValidateCollectionNotEmptyAttribute() public méthode

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