Click or drag to resize
TreePathUtilsGetParentPathRestricted Method
Returns the parent path for the specified path (any kind of path with "/" as a separator) with restriction on depth of the path

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

Parameters

path
Type: SystemString
Original path
maximalLevel
Type: SystemInt32
Restricts returned path to specified maximal number of parent levels

Return Value

Type: String
See Also