FileTracker.FileIsUnderPath(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.