Progress Event
Fires to report the progress of an operation.
Syntax
public event OnProgressHandler OnProgress; public delegate void OnProgressHandler(object sender, FilecacheProgressEventArgs e); public class FilecacheProgressEventArgs : EventArgs { public int Operation { get; } public long Current { get; } public long Total { get; } public bool Interrupt { get; set; } }
Public Event OnProgress As OnProgressHandler Public Delegate Sub OnProgressHandler(sender As Object, e As FilecacheProgressEventArgs) Public Class FilecacheProgressEventArgs Inherits EventArgs Public ReadOnly Property Operation As Integer Public ReadOnly Property Current As Long Public ReadOnly Property Total As Long Public Property Interrupt As Boolean End Class
Remarks
This event fires when the cache wants to report the progress of the operation specified by Operation; possible values are:
CBFSSTORAGE_PO_CLEANUP | 1 | Cache cleanup |
The Current and Total parameters specify the number of the item being processed, and the total number of items being processed, respectively. For some operations, these parameters may be 0 or -1.
The Interrupt parameter can be set to true to stop the operation.