Class PublishDateValidator
Validates that StartPublish occurs before StopPublish.
Inheritance
System.Object
PublishDateValidator
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.Validation
Assembly: EPiServer.dll
Version: 9.12.2Syntax
[ServiceConfiguration]
public class PublishDateValidator : 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> |