Try our conversational search powered by Generative AI!

Class PagePathExtensions

Helper class for page path extensions.

Inheritance
System.Object
PagePathExtensions
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.Core
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public static class PagePathExtensions

Methods

StartsWith(PagePath, PagePath)

Checks if the current PagePath starts with all the pagelinks in the given PagePath.

Declaration
public static bool StartsWith(this PagePath current, PagePath parentPath)
Parameters
Type Name Description
PagePath current

The current instance.

PagePath parentPath

The parent path to compare with.

Returns
Type Description
System.Boolean

true if the current PagePath starts with all the pagelinks in the given PagePath; otherwise false.