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.MoveTo

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
);

Parameters

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

Exceptions

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.

Requirements

NGWS Runtime Security:

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

See Also

Directory Class | Directory Members | System.IO Namespace