Progress Event
Reports the data encryption/decryption progress.
Syntax
public event OnProgressHandler OnProgress; public delegate void OnProgressHandler(object sender, SymmetriccryptoProgressEventArgs e); public class SymmetriccryptoProgressEventArgs : EventArgs { public long Total { get; } public long Current { get; } public bool Cancel { get; set; } }
Public Event OnProgress As OnProgressHandler Public Delegate Sub OnProgressHandler(sender As Object, e As SymmetriccryptoProgressEventArgs) Public Class SymmetriccryptoProgressEventArgs Inherits EventArgs Public ReadOnly Property Total As Long Public ReadOnly Property Current As Long Public Property Cancel As Boolean End Class
Remarks
This event fires periodically during a file encrypt/decrypt operation to report its progress.
Use the Cancel parameter to terminate the encryption/decryption if needed.