Share via


ValueAccessComparisonValidator.DoValidate Method

Validates by comparing objectToValidate with the result of extracting a value from currentTarget usign the configured ValueAccess using the configured ComparisonOperator.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Validation.Validators
Assembly:  Microsoft.Practices.EnterpriseLibrary.Validation (in Microsoft.Practices.EnterpriseLibrary.Validation.dll)

Syntax

'Declaration
Public Overrides Sub DoValidate ( _
    objectToValidate As Object, _
    currentTarget As Object, _
    key As String, _
    validationResults As ValidationResults _
)
public override void DoValidate(
    Object objectToValidate,
    Object currentTarget,
    string key,
    ValidationResults validationResults
)
public:
virtual void DoValidate(
    Object^ objectToValidate, 
    Object^ currentTarget, 
    String^ key, 
    ValidationResults^ validationResults
) override
public override function DoValidate(
    objectToValidate : Object, 
    currentTarget : Object, 
    key : String, 
    validationResults : ValidationResults
)

Parameters

  • 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.

See Also

ValueAccessComparisonValidator Class

Microsoft.Practices.EnterpriseLibrary.Validation.Validators Namespace