Moves a directory and its contents to a new path.
[Visual Basic] Public Sub MoveTo( _ ByVal destDirName As String _ ) [C#] public void MoveTo( string destDirName ); [C++] public: void MoveTo( String* destDirName ); [JScript] public function MoveTo( destDirName : String );
Exception Type | Condition |
---|---|
ArgumentNullException | destDirName is null. |
ArgumentException | destDirName is an empty string (''"). |
IOException | An I/O error occurs. |
SecurityException | The caller does not have the required permission. |
NGWS Runtime Security:
FileIOPermissionAccess | Write flag required for write permission to the destination directory. |