London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class VariationContentValidator

Validates the VariationContent condition.

Inheritance
System.Object
VariationContentValidator
Implements
EPiServer.Validation.IValidate<VariationContent>
EPiServer.Validation.IValidate
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.Commerce.Validation
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0
Syntax
public class VariationContentValidator : IValidate<VariationContent>, IValidate

Constructors

VariationContentValidator(LocalizationService)

Initializes a new instance of the VariationContentValidator class.

Declaration
public VariationContentValidator(LocalizationService localizationService)
Parameters
Type Name Description
EPiServer.Framework.Localization.LocalizationService localizationService

The localization service.

Methods

Validate(VariationContent)

Validates the specified variation content.

Declaration
public IEnumerable<ValidationError> Validate(VariationContent content)
Parameters
Type Name Description
VariationContent content

The content that will be validated.

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

Validation errors

Implements

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