更新时间:2023-02-10 23:02:32
参见 http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragefile%28v=vs.110%29.aspx [ ^ ]。
Hi, according to http://msdn.microsoft.com/en-us/library/windows/apps/hh202959(v=vs.105).aspx[^]
i create a backgroundtransfer. i want when download is completed, that file moves to "Downloads Folder on root directory" (Phone or SD Card/Downloads). i don't know how can i make it, microsoft changes all codes on Windows Phone.
microsoft wrote a code on that topic>
case TransferStatus.Completed:
// If the status code of a completed transfer is 200 or 206, the
// transfer was successful
if (transfer.StatusCode == 200 || transfer.StatusCode == 206)
{
// Remove the transfer request in order to make room in the
// queue for more transfers. Transfers are not automatically
// removed by the system.
RemoveTransferRequest(transfer.RequestId);
// In this example, the downloaded file is moved into the root
// Isolated Storage directory
using (IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication())
{
string filename = transfer.Tag;
if (isoStore.FileExists(filename))
{
isoStore.DeleteFile(filename);
}
isoStore.MoveFile(transfer.DownloadLocation.OriginalString, filename);
}
}
but i dont know where goes that file when moved!
please give me a code. thanks alot
See http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragefile%28v=vs.110%29.aspx[^].