Skip to content

Instantly share code, notes, and snippets.

Created January 4, 2013 07:29
Show Gist options
  • Select an option

  • Save anonymous/4450671 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/4450671 to your computer and use it in GitHub Desktop.
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