Click or drag to resize

IOUtilitiesPathIsChild Method (String, String, Boolean)

Tests if a path is a child of another path.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static bool PathIsChild(
	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