ValidatorAttribute.DoCreateValidator Method (Type)

Creates the Validator described by the attribute object providing validator specific information.

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

Syntax

protected abstract Validator DoCreateValidator(
    Type targetType
)
'Declaration
Protected MustOverride Function DoCreateValidator ( 
    targetType As Type
) As Validator
protected:
virtual Validator^ DoCreateValidator(
    Type^ targetType
) abstract

Parameters

  • targetType
    Type: System.Type
    The type of object that will be validated by the validator.

Return Value

Type: Validator
The created Validator.

Remarks

This operation must be overriden by subclasses.

See Also

ValidatorAttribute Class

ValidatorAttribute Members

DoCreateValidator Overload

Microsoft.Practices.EnterpriseLibrary.Validation.Validators Namespace