IsChildPath Method

MCManager API

Verifies that the specified path is a child/subpath of the parent path.

Namespace:  Moxiecode.Manager.Utils
Assembly:  MCManager (in MCManager.dll) Version: 1.0.0.0

Syntax

C#
public static bool IsChildPath(
	string parent_path,
	string path
)
Visual Basic (Declaration)
Public Shared Function IsChildPath ( _
	parent_path As String, _
	path As String _
) As Boolean
Visual C++
public:
static bool IsChildPath(
	String^ parent_path, 
	String^ path
)

Parameters

parent_path
Type: System..::.String
Parent directory path.
path
Type: System..::.String
Child path that must be a subpath or the same as parent path.

Return Value

True if the specified path is a child/subpath of the parent path

See Also