NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

File.Move

Moves a specified file to a new location and potentially a new file name. This method does work across volumes.

[Visual Basic]
Public Shared Sub Move( _
   ByVal sourceFileName As String, _
   ByVal destFileName As String _
)
[C#]
public static void Move(
   string sourceFileName,
   string destFileName
);
[C++]
public: static void Move(
   String* sourceFileName,
   String* destFileName
);
[JScript]
public static function Move(
   sourceFileName : String,
   destFileName : String
);

Parameters

sourceFileName
The name of the file to be copied.
destFileName
The name of the new file to copy to.

Exceptions

Exception Type Condition
IOException An I/O error occurs or the destination file already exists.
ArgumentNullException sourceFileName or destFileName is a null reference (in Visual Basic Nothing).
ArgumentException sourceFileName or destFileName is an empty string ("") or contains only whitespaces.
SecurityException The caller does not have the required permission.

Requirements

NGWS Runtime Security:

FileIOPermissionAccess Read and write permission to the path.

See Also

File Class | File Members | System.IO Namespace