AfterCompressFile Event
Marks the completion of compression of a file.
Syntax
public event OnAfterCompressFileHandler OnAfterCompressFile; public delegate void OnAfterCompressFileHandler(object sender, ArchivewriterAfterCompressFileEventArgs e); public class ArchivewriterAfterCompressFileEventArgs : EventArgs { public string Path { get; } public long FileSize { get; } public int DataSource { get; } }
Public Event OnAfterCompressFile As OnAfterCompressFileHandler Public Delegate Sub OnAfterCompressFileHandler(sender As Object, e As ArchivewriterAfterCompressFileEventArgs) Public Class ArchivewriterAfterCompressFileEventArgs Inherits EventArgs Public ReadOnly Property Path As String Public ReadOnly Property FileSize As Long Public ReadOnly Property DataSource As Integer End Class
Remarks
Subscribe to this event to get notified about the completion of compression of a file.
The Path parameter specifies the internal path to the entry inside the archive. The FileSize indicates the size of the file before compression, and the DataSource specifies the type of the source media.
fdsFile (0) | The data was taken from a file. |
fdsStream (1) | The data was taken from a stream assigned to FileStream property. |
fdsBuffer (2) | The file data taken from the FileData buffer. |