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!

Directory.Move

Moves a directory and its contents to a new path.

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

Parameters

srcDirName
The name and path from which to move the directory.
destDirName
The name and path to which to move the directory.

Exceptions

Exception Type Condition
ArgumentException srcDirName or destDirName is an empty string ("") or contains only whitespaces.
ArgumentNullException srcDirName or destDirName is a null reference (in Visual Basic Nothing).
SecurityException The caller does not have the required permission.

Requirements

NGWS Runtime Security:

FileIOPermissionAccess Write flag required for write permission to the destination directory.

See Also

Directory Class | Directory Members | System.IO Namespace