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.

Remarks

Subclasses must provide a concrete implementation the validation logic.

See Also

Validator<T> Class

Validator<T> Members

DoValidate Overload

Microsoft.Practices.EnterpriseLibrary.Validation Namespace