Share via


ValueAccessValidator.DoValidate Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Validates extracting a value from objectToValidate and applying a validator to it.

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

Syntax

'Declaration
Protected FriendOverridesSubDoValidate ( _
    objectToValidateAs Object, _
    currentTargetAs Object, _
    keyAs String, _
    validationResultsAs ValidationResults _
)
protected internaloverridevoidDoValidate(
    Object objectToValidate,
    Object currentTarget,
    string key,
    ValidationResults validationResults
)
protected public:
virtualvoidDoValidate(
    Object^ objectToValidate, 
    Object^ currentTarget, 
    String^ key, 
    ValidationResults^ validationResults
) override
protected internaloverridefunctionDoValidate(
    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.

Remarks

nulla null reference (Nothing in Visual Basic) is considered a failed validation.

See Also

ValueAccessValidator Class

Microsoft.Practices.EnterpriseLibrary.Validation.Validators Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.