Dela via


FileTracker.FileIsUnderPath(String, String) Method

Definition

Test to see if the specified file is under the specified path

public:
 static bool FileIsUnderPath(System::String ^ fileName, System::String ^ path);
public static bool FileIsUnderPath (string fileName, string path);
static member FileIsUnderPath : string * string -> bool
Public Shared Function FileIsUnderPath (fileName As String, path As String) As Boolean

Parameters

fileName
String

Full path of the file to test

path
String

Is the file under this full path?

Returns

true if the file is under the path; otherwise, false.

Applies to