Share via


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

The latest Enterprise Library information can be found at the Enterprise Library site.

Implements the validation logic for the receiver.

Namespace: Microsoft.Practices.EnterpriseLibrary.Validation
Assembly: Microsoft.Practices.EnterpriseLibrary.Validation.Silverlight (in Microsoft.Practices.EnterpriseLibrary.Validation.Silverlight.dll) Version: 5.0.505.0

Syntax

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

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

Subclasses must provide a concrete implementation the validation logic.

See Also

Validator Class

Microsoft.Practices.EnterpriseLibrary.Validation Namespace