Directory.Move Method
Moves a file or a directory and its contents to a new location.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Syntax
public static void Move (
stringsourceDirName,
stringdestDirName
)
Parameters
- sourceDirName
The path of the file or directory to move. - destDirName
The path to the new location for sourceDirName. If sourceDirName is a file, then destDirName must also be a file name.
Version Information
Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.