Progress Event
Reports the progress of the decryption operation.
Syntax
public event OnProgressHandler OnProgress; public delegate void OnProgressHandler(object sender, PgpwriterProgressEventArgs e); public class PgpwriterProgressEventArgs : EventArgs { public long Current { get; } public long Total { get; } public bool Cancel { get; set; } }
Public Event OnProgress As OnProgressHandler Public Delegate Sub OnProgressHandler(sender As Object, e As PgpwriterProgressEventArgs) Public Class PgpwriterProgressEventArgs Inherits EventArgs Public ReadOnly Property Current As Long Public ReadOnly Property Total As Long Public Property Cancel As Boolean End Class
Remarks
The component fires this event repeatedly to report the progress of the file protection operation.
Current indicates the amount of processed data in bytes, and Total is the total number of bytes to be processed. Use Cancel to terminate the protection process.