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

Empty attribute More...

Inheritance diagram for Utilities.Validation.EmptyAttribute:

Public Member Functions

 EmptyAttribute (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

Empty attribute

Definition at line 33 of file Empty.cs.

Constructor & Destructor Documentation

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

Constructor

Parameters
ErrorMessageError message

Definition at line 39 of file Empty.cs.

Member Function Documentation

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

Formats the error message

Parameters
nameProperty name
Returns
The formatted string

Definition at line 49 of file Empty.cs.

override ValidationResult Utilities.Validation.EmptyAttribute.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 Empty.cs.


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