ListEventHandler Delegate


public delegate bool ListEventHandler(
  object sender,
  FileInfo[] fileInfos,
  bool endOfList);


  • sender: The source of the event.
  • fileInfos: An array of FileInfos.
  • endOfList: If endOfList=true, then this is the last call.

Return Value

Return false to cancel the listing.


The handler may be called multiple times. On success the last call will have endOfList=true. If you return false or if an error occurs, the listing is canceled.