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

Does not contain attribute More...

Inheritance diagram for Utilities.Validation.DoesNotContainAttribute:

Public Member Functions

 DoesNotContainAttribute (object 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

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

Detailed Description

Does not contain attribute

Definition at line 35 of file DoesNotContain.cs.

Constructor & Destructor Documentation

Utilities.Validation.DoesNotContainAttribute.DoesNotContainAttribute ( object  Value,
string  ErrorMessage = "" 
)

Constructor

Parameters
ValueValue to check for
ErrorMessageError message

Definition at line 42 of file DoesNotContain.cs.

Member Function Documentation

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

Formats the error message

Parameters
nameProperty name
Returns
The formatted string

Definition at line 58 of file DoesNotContain.cs.

override ValidationResult Utilities.Validation.DoesNotContainAttribute.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 69 of file DoesNotContain.cs.

Property Documentation

IComparable Utilities.Validation.DoesNotContainAttribute.Value
get

Value to compare to

Definition at line 51 of file DoesNotContain.cs.


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