November Happy Hour will be moved to Thursday December 5th.

Interface IContextValidationService

NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Defines the signature for the service that performs vaidation of model instances.

Namespace: EPiServer.Validation
Assembly: EPiServer.Framework.dll
Version: 9.12.2
Syntax
public interface IContextValidationService : IValidationService

Methods

Validate<T>(Object, T)

Validates the specified instance given specified context.

Declaration
IEnumerable<ValidationError> Validate<T>(object instance, T context)
Parameters
Type Name Description
System.Object instance

The instance.

T context

The context for the validation

Returns
Type Description
System.Collections.Generic.IEnumerable<ValidationError>
Type Parameters
Name Description
T

Extension Methods