ReparsePointAware.MoveFile(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.
Moves a specified file to a new location, providing the option to specify a new file name. If the file's canonical path contains Windows Reparse Points, UnauthorizedAccessException is thrown.
public static void MoveFile (string sourceFileName, string destFileName);
static member MoveFile : string * string -> unit
Public Shared Sub MoveFile (sourceFileName As String, destFileName As String)
Parameters
- sourceFileName
- String
Full path to the file being moved.
- destFileName
- String
Full path to the new location that the file is being moved to.
Exceptions
The path contains Windows Reparse Points or otherwise cannot be accessed.