Class AdaptiveImageValidator
Provides server-side validation of content with AdaptiveImage properties
Implements
IValidate<IContent>
IValidate
Inherited Members
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