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 EntryCodeValidator

Represents the validator for Code property of EntryContentBase.

Inheritance
System.Object
EntryCodeValidator
Implements
EPiServer.Validation.IValidate<EntryContentBase>
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 EntryCodeValidator : IValidate<EntryContentBase>, IValidate

Constructors

EntryCodeValidator(ICatalogSystem, LocalizationService, ReferenceConverter)

Initializes a new instance of the EntryCodeValidator class.

Declaration
public EntryCodeValidator(ICatalogSystem catalogSystem, LocalizationService localizationService, ReferenceConverter referenceConverter)
Parameters
Type Name Description
ICatalogSystem catalogSystem

The catalog system.

EPiServer.Framework.Localization.LocalizationService localizationService

The localization service.

ReferenceConverter referenceConverter

The reference converter, to get CatalogEntryId from EntryContentBase.

Methods

Validate(EntryContentBase)

Validates the specified instance.

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

The instance.

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

Implements

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