Created
January 4, 2013 07:29
-
-
Save anonymous/4450671 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void RemoveTransferRequest(string transferID) | |
| { | |
| // 利用find方法找到要刪除的transfer file的特定ID | |
| BackgroundTransferRequest transferToRemove = BackgroundTransferService.Find(transferID); | |
| // 從service移除 | |
| try | |
| { | |
| BackgroundTransferService.Remove(transferToRemove); | |
| } | |
| catch (Exception e) | |
| { | |
| // Handle the exception. | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment