Click or drag to resize

IOUtilitiesPathIsChildOrEqual Method

Tests if a path is a child of or equal to another path.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static bool PathIsChildOrEqual(
	string path,
	string child,
	bool normalize = true
)

Parameters

path
Type: SystemString
The path.
child
Type: SystemString
The possible child.
normalize (Optional)
Type: SystemBoolean
if set to true paths will be normalized first.

Return Value

Type: Boolean
true if child is a child of path, false otherwise.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null or child is null.
See Also