November Happy Hour will be moved to Thursday December 5th.

Class RoutingSegmentValidator

Validates that the current routing segment is unique among its siblings

Inheritance
System.Object
RoutingSegmentValidator
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.2
Syntax
[ServiceConfiguration]
public class RoutingSegmentValidator : IValidate<IContent>, IValidate

Constructors

RoutingSegmentValidator(LocalizationService, UrlSegmentHandler, IContentTypeRepository, IContentRepository, UrlSegment)

Initializes a new instance of the PageShortcutValidator class.

Declaration
public RoutingSegmentValidator(LocalizationService localizationService, UrlSegmentHandler urlSegmentHandler, IContentTypeRepository contentTypeRepository, IContentRepository contentRepository, UrlSegment urlSegment)
Parameters
Type Name Description
LocalizationService localizationService

The localization service.

UrlSegmentHandler urlSegmentHandler

The URL segment handler.

IContentTypeRepository contentTypeRepository

The content type repository.

IContentRepository contentRepository

The content repository.

UrlSegment urlSegment

The URL segment.

Properties

IISHiddenSegments

Gets or sets the IIS hidden segments.

Declaration
public List<string> IISHiddenSegments { get; set; }
Property Value
Type Description
System.Collections.Generic.List<System.String>

The IIS hidden segments.

Remarks

This is exposed to make the class testable. At runtime it will use values given by EPiServer.Configuration.Settings.Instance.IISHiddenSegments.

Methods

Validate(IContent)

Validates the specified instance.

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

The instance.

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

Implements

Extension Methods