Share via


ReparsePointAware.MoveFile(String, String) Method

Definition

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.

Applies to