Class ContentPath
A collection of Content
Inheritance
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class ContentPath : Collection<ContentReference>
Constructors
ContentPath()
Initializes a new instance of the Content
Declaration
public ContentPath()
ContentPath(IEnumerable<ContentReference>)
Initializes a new instance of the Content
Declaration
public ContentPath(IEnumerable<ContentReference> contentLinks)
Parameters
Type | Name | Description |
---|---|---|
System. |
contentLinks | The content links for all ancestor content to the actual content. |
Methods
Parse(String)
Parses a dot seperated list of content links which represent the acestry of a content item.
Declaration
public static ContentPath Parse(string stringToParse)
Parameters
Type | Name | Description |
---|---|---|
System. |
stringToParse | The string to parse |
Returns
Type | Description |
---|---|
Content |
A new instance of Content |
StartsWith(ContentPath)
Checks if the current Content
Declaration
public bool StartsWith(ContentPath parentPath)
Parameters
Type | Name | Description |
---|---|---|
Content |
parentPath | The parent path to compare with. |
Returns
Type | Description |
---|---|
System. |
|
ToString()
Generates a comma-separated list with content links
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |