SetCompressionCallback Delegate

DotNetZip

Ionic Zip Library v1.9.1.6 SetCompressionCallback Delegate
ReferenceIonic.ZipSetCompressionCallback
Delegate for the callback by which the application tells the library the CompressionLevel to use for a file.
Declaration Syntax
C# Visual Basic Visual C++
public delegate CompressionLevel SetCompressionCallback(
	string localFileName,
	string fileNameInArchive
)
Public Delegate Function SetCompressionCallback ( _
	localFileName As String, _
	fileNameInArchive As String _
) As CompressionLevel
public delegate CompressionLevel SetCompressionCallback(
	String^ localFileName, 
	String^ fileNameInArchive
)
Parameters
localFileName (String)
fileNameInArchive (String)
Remarks

Using this callback, the application can, for example, specify that previously-compressed files (.mp3, .png, .docx, etc) should use a CompressionLevel of None, or can set the compression level based on any other factor.

See Also

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)