Class ValidatorWrapper

Class that encapsulates an instance of IValidate<T>

Inheritance
System.Object
ValidatorWrapper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Validation
Assembly: EPiServer.Framework.dll
Version: 8.11.0
Syntax
public abstract class ValidatorWrapper

Constructors

ValidatorWrapper()

Declaration
protected ValidatorWrapper()

Properties

EncapsulatedValidator

Gets the encapsulated validator.

Declaration
public abstract object EncapsulatedValidator { get; }
Property Value
Type Description
System.Object

The encapsulated validator.

TypeToValidate

Gets the type to validate.

Declaration
public abstract Type TypeToValidate { get; }
Property Value
Type Description
System.Type

The type to validate.

Methods

Validate(Object)

Validates the specified instance.

Declaration
public abstract IEnumerable<ValidationError> Validate(object instance)
Parameters
Type Name Description
System.Object instance

The instance.

Returns
Type Description
System.Collections.Generic.IEnumerable<ValidationError>