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 );
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. |
NGWS Runtime Security:
FileIOPermissionAccess | Write flag required for write permission to the destination directory. |