/// <summary> /// Moves the current file to the specified folder and renames the file according to the desired name. /// </summary> /// <param name="destinationFolder">The destination folder where the file is moved.</param> /// <returns></returns> public Task MoveAsync(IStorageFolder destinationFolder) { #if WINDOWS_UWP || WINDOWS_APP || WINDOWS_PHONE_APP || WINDOWS_PHONE return(_file.MoveAsync((Windows.Storage.StorageFolder)((StorageFolder)destinationFolder)).AsTask()); #else return(MoveAsync(destinationFolder, global::System.IO.Path.GetFileName(Path))); #endif }