Validator<T>.DoValidate Method (T, Object, String, ValidationResults)
Implements the validation logic for the receiver.
Namespace: Microsoft.Practices.EnterpriseLibrary.Validation
Assembly: Microsoft.Practices.EnterpriseLibrary.Validation (in Microsoft.Practices.EnterpriseLibrary.Validation.dll) Version: 6.0.0.0 (6.0.1304.0)
Syntax
protected abstract void DoValidate(
T objectToValidate,
Object currentTarget,
string key,
ValidationResults validationResults
)
'Declaration
Protected MustOverride Sub DoValidate (
objectToValidate As T,
currentTarget As Object,
key As String,
validationResults As ValidationResults
)
protected:
virtual void DoValidate(
T objectToValidate,
Object^ currentTarget,
String^ key,
ValidationResults^ validationResults
) abstract
Parameters
- objectToValidate
Type: T
The instance of T to validate.
- currentTarget
Type: System.Object
The object on the behalf of which the validation is performed.
- key
Type: System.String
The key that identifies the source of objectToValidate.
- validationResults
Type: Microsoft.Practices.EnterpriseLibrary.Validation.ValidationResults
The validation results to which the outcome of the validation should be stored.
Remarks
Subclasses must provide a concrete implementation the validation logic.