TransferEventHandler Delegate

[C#]

public delegate bool TransferEventHandler(
  object sender,
  bool done,
  TransferStat transferStat);

Parameters

  • sender: The source of the event.
  • done: This handler can be called multiple times. On success, the last call will have done=true.
  • transferStat: A TransferStat.

Return Value

Return false to cancel the transfer.

Remarks

Reports the progress of a file download/upload. The handler may be called multiple times. On success the last call will have done=true. If you return false or if an error occurs, the transfer is canceled.