SaaS CMS has officially launched! Learn more now.

Class PublishDateValidator

Validates that StartPublish occurs before StopPublish.

Inheritance
System.Object
PublishDateValidator
Namespace: EPiServer.Validation.Internal
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
public class PublishDateValidator : Object, IValidate<IVersionable>, IValidate

Constructors

PublishDateValidator(LocalizationService, IContentTypeRepository)

Initializes a new instance of the PageShortcutValidator class.

Declaration
public PublishDateValidator(LocalizationService localizationService, IContentTypeRepository contentTypeRepository)
Parameters
Type Name Description
LocalizationService localizationService

The localization service.

IContentTypeRepository contentTypeRepository

The content type repository.

Methods

Validate(IVersionable)

Validates the specified instance.

Declaration
public IEnumerable<ValidationError> Validate(IVersionable versionable)
Parameters
Type Name Description
IVersionable versionable

The versionable.

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

Implements

Extension Methods