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 NodeCodeValidator

Represents the validator for Code property of NodeContent.

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

Constructors

NodeCodeValidator(ICatalogSystem, LocalizationService, ReferenceConverter)

Initializes a new instance of the NodeCodeValidator class.

Declaration
public NodeCodeValidator(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(NodeContent)

Validates the specified instance.

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

The instance.

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

Implements

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