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

Min length attribute More...

Inheritance diagram for Utilities.Validation.MinLengthAttribute:

Public Member Functions

 MinLengthAttribute (long Value, 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...
 

Properties

long Value [get]
 Value to compare to More...
 

Detailed Description

Min length attribute

Definition at line 33 of file MinLength.cs.

Constructor & Destructor Documentation

Utilities.Validation.MinLengthAttribute.MinLengthAttribute ( long  Value,
string  ErrorMessage = "" 
)

Constructor

Parameters
ValueValue to check
ErrorMessageError message

Definition at line 40 of file MinLength.cs.

Member Function Documentation

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

Formats the error message

Parameters
nameProperty name
Returns
The formatted string

Definition at line 56 of file MinLength.cs.

override ValidationResult Utilities.Validation.MinLengthAttribute.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 68 of file MinLength.cs.

Property Documentation

long Utilities.Validation.MinLengthAttribute.Value
get

Value to compare to

Definition at line 49 of file MinLength.cs.


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