[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Moves a specified file to a new location, and optionally lets you specify a new file name.
Assembly: mscorlib (in mscorlib.dll)
'Declaration Public Sub MoveFile ( _ sourceFileName As String, _ destinationFileName As String _ )
sourceFileName or destinationFileName is a zero-length string, contains only white space, or contains one or more invalid characters defined by the Path.GetInvalidPathChars method.
sourceFileName or destinationFileName is Nothing.
The isolated store has been closed.
The isolated store has been disposed.
sourceFileName was not found.
The isolated store has been removed.
Isolated storage is disabled.