C# Class Tortuga.Chain.AuditRules.ValidationRule

Base class for validation style rules.
Inheritance: AuditRule
显示文件 Open project: docevaad/Chain

Public Methods

Method Description
CheckValue ( object argumentValue ) : void

Checks the value for validation errors.

Protected Methods

Method Description
ValidationRule ( OperationTypes appliesWhen ) : System.ComponentModel.DataAnnotations

Initializes a new instance of the ValidationRule class.

Method Details

CheckValue() public abstract method

Checks the value for validation errors.
A ValidationException will be thrown if the object contains validation errors.
public abstract CheckValue ( object argumentValue ) : void
argumentValue object The argument value.
return void

ValidationRule() protected method

Initializes a new instance of the ValidationRule class.
protected ValidationRule ( OperationTypes appliesWhen ) : System.ComponentModel.DataAnnotations
appliesWhen OperationTypes The rule applies when.
return System.ComponentModel.DataAnnotations