Click or drag to resize
TreePathUtils.GetParentPath Method (String, Int32)
Returns the parent path for the specified path, with distance of parentLevel from the given path.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax
C#
public static string GetParentPath(
	string path,
	int parentLevel
)

Parameters

path
Type: System.String
Source path
parentLevel
Type: System.Int32
Parent level (distance) from the given path

Return Value

Type: String
See Also