PathUtil::IsDescendant Method (String^, String^)

Visual Studio 2015
 

Determines whether a child path is a descendant of a parent directory. This is a purely textual computation indicating that child could be a descendant of parent; there is no file system interaction to determine whether child actually is a descendant of parent.

Namespace:   Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Utilities (in Microsoft.VisualStudio.Utilities.dll)

public:
static bool IsDescendant(
	String^ parent,
	String^ child
)

Parameters

parent
Type: System::String^

The parent path.

child
Type: System::String^

The child fileh.

Return Value

Type: System::Boolean

True if child is descendant, false if not.

Return to top
Show: