Show / Hide Table of Contents

Class AdaptiveImageValidator

Provides server-side validation of content with AdaptiveImage properties

Inheritance
object
ImageValidator
AdaptiveImageValidator
Implements
IValidate<IContent>
IValidate
Inherited Members
ImageValidator.GetImageProperties<TImageProperty>(IContentData)
ImageValidator.Validate<TImageProperty>(IContentData)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: AdaptiveImages.Validation
Assembly: AdaptiveImages.dll
Syntax
public class AdaptiveImageValidator : ImageValidator, IValidate<IContent>, IValidate

Constructors

AdaptiveImageValidator(IContentLoader?, LocalizationService?, IPublishedStateAssessor?, IAddonSettings?)

Creates a new validator for content with AdaptiveImage properties

Declaration
public AdaptiveImageValidator(IContentLoader? contentLoader = null, LocalizationService? localizationService = null, IPublishedStateAssessor? publishedStateAssessor = null, IAddonSettings? addonSettings = null)
Parameters
Type Name Description
IContentLoader contentLoader
LocalizationService localizationService
IPublishedStateAssessor publishedStateAssessor
IAddonSettings addonSettings

Methods

Validate(IContent)

Validates all AdaptiveImage properties on the specified content instance

Declaration
public IEnumerable<ValidationError> Validate(IContent instance)
Parameters
Type Name Description
IContent instance
Returns
Type Description
IEnumerable<ValidationError>

Implements

EPiServer.Validation.IValidate<T>
EPiServer.Validation.IValidate

Extension Methods

ImageExtensions.GetCultureSpecificImageAttribute<TContent, TProperty>(TContent, Expression<Func<TContent, TProperty>>)
ImageExtensions.GetImageConstraints<TParent>(TParent, string)
ImageExtensions.GetImageConstraints<TParent, TProperty>(TParent, Expression<Func<TParent, TProperty>>)
ImageExtensions.GetImageRenderSettings<TParent, TProperty>(TParent, Expression<Func<TParent, TProperty>>)
ImageExtensions.GetImageRenderSettings<TParent, TProperty>(TParent, Expression<Func<TParent, TProperty>>, FormFactor)
ImageExtensions.GetProportionsConstraint<TParent>(TParent, string)
ImageExtensions.GetProportionsConstraint<TParent>(TParent, string, FormFactor)
ImageExtensions.GetProportionsConstraint<TParent, TProperty>(TParent, Expression<Func<TParent, TProperty>>)
ImageExtensions.GetRequiredImageAttribute<TContent, TProperty>(TContent, Expression<Func<TContent, TProperty>>)
ImageExtensions.GetSizeConstraint<TContent, TProperty>(TContent, Expression<Func<TContent, TProperty>>)
☀
☾
In this article
Back to top
Documentation applies to: Adaptive Images 2.x
☀
☾