ShellBrowser .Net Edition
IsSubPathOf Method (p_SuperiorPath, p_PossibleSubPath)
NamespacesJam.ShellPathCollectionIsSubPathOf(String, String)
Checks if a given path is a parent path of the other given path.
Declaration Syntax
C#Visual BasicVisual C++
public static bool IsSubPathOf(
	string p_SuperiorPath,
	string p_PossibleSubPath
)
Public Shared Function IsSubPathOf ( _
	p_SuperiorPath As String, _
	p_PossibleSubPath As String _
) As Boolean
public:
static bool IsSubPathOf(
	String^ p_SuperiorPath, 
	String^ p_PossibleSubPath
)
Parameters
p_SuperiorPath (String)
The possible parent (superior) path.
p_PossibleSubPath (String)
A path for that should be checked if it is a sub-path of p_SuperiorPath.
Return Value
true if p_SuperiorPath is a prent path of p_PossibleSubPath.
Remarks
p_SuperiorPath does not necessarily need to ba a direct parent of p_PossibleSubPath
Examples

CopyC#
PathCollection.IsSubPathOf(@"C:\", @"C:\Windows\System32")
returns true.

CopyC#
PathCollection.IsSubPathOf(@"C:\Temp", @"C:\Windows\System32")
returns false.

Assembly: ShellBrowser (Module: ShellBrowser) Version: 4.2.1.45 (4.2.1.45)