Class SingleImageValidator
Provides server-side validation of content with SingleImage properties
Implements
IValidate<IContent>
IValidate
Inherited Members
Namespace: AdaptiveImages.Validation
Assembly: AdaptiveImages.dll
Syntax
public class SingleImageValidator : ImageValidator, IValidate<IContent>, IValidate
Constructors
SingleImageValidator(IContentLoader?, LocalizationService?, IPublishedStateAssessor?, IAddonSettings?)
Creates a new validator for content with SingleImage properties
Declaration
public SingleImageValidator(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 SingleImage 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