开发者

How to upload file with BackgroundTransfer for windows phone

开发者 https://www.devze.com 2023-03-20 17:23 出处:网络
have check the documentation but there is no sample to show how this is done. This is the code for download :

have check the documentation but there is no sample to show how this is done. This is the code for download :

void Download()
{
    btr = new BackgroundTransferRequest(remoteVideoUri, localDownloadUri);
    btr.TransferPreferences = TransferPreferences.AllowCellularAndBattery;
    BackgroundTransferService.A开发者_如何学Cdd(btr);
    btr.TransferProgressChanged += new EventHandler<BackgroundTransferEventArgs>(btr_TransferProgressChanged);
    btr.TransferStatusChanged += new EventHandler<BackgroundTransferEventArgs>(btr_TransferStatusChanged);
}

For upload, can it be done with this backgroudTransfer ? what and how to do it?


I haven't yet had chance to look at the background transfer stuff in Mango yet, but there is a lab that covers it in the Mango Offline Training Kit: http://msdn.microsoft.com/en-us/WP7MangoTrainingCourse and I do know that it can do uploads as well as downloads.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号