Craig's Utility Library  4.0 Beta
Utilities.Validation.NotEmptyAttribute Class Reference

Not empty attribute More...

Inheritance diagram for Utilities.Validation.NotEmptyAttribute:

Public Member Functions

 NotEmptyAttribute (string ErrorMessage="")
 Constructor More...
 
override string FormatErrorMessage (string name)
 Formats the error message More...
 

Protected Member Functions

override ValidationResult IsValid (object value, ValidationContext validationContext)
 Determines if the property is valid More...
 

Detailed Description

Not empty attribute

Definition at line 33 of file NotEmpty.cs.

Constructor & Destructor Documentation

Utilities.Validation.NotEmptyAttribute.NotEmptyAttribute ( string  ErrorMessage = "")

Constructor

Parameters
ErrorMessageError message

Definition at line 39 of file NotEmpty.cs.

Member Function Documentation

override string Utilities.Validation.NotEmptyAttribute.FormatErrorMessage ( string  name)

Formats the error message

Parameters
nameProperty name
Returns
The formatted string

Definition at line 49 of file NotEmpty.cs.

override ValidationResult Utilities.Validation.NotEmptyAttribute.IsValid ( object  value,
ValidationContext  validationContext 
)
protected

Determines if the property is valid

Parameters
valueValue to check
validationContextValidation context
Returns
The validation result

Definition at line 60 of file NotEmpty.cs.


The documentation for this class was generated from the following file: