Xceed Zip Compression Library Documentation
MaxSizeToProcess property
Xceed Zip control reference > Xceed Zip control properties > MaxSizeToProcess property

Example

Description

The MaxSizeToProcess property is a filtering property that lets you limit the processing of files to only those files that are smaller than or equal to a specified file size. This property affects the list of files specified in the FilesToProcess property.

Files that have a larger file size (in bytes) than the amount specified MaxSizeToProcess property will be tagged as "excluded" when the ZipPreprocessingFile or UnzipPreprocessingFile event occurs, and will not be processed unless you change the value of the excluded parameter to False.

Setting this property to 0 will eliminate checking for a maximum size.

This property can be used in conjunction with other filtering properties. In particular, it can be used in conjunction with the MinSizeToProcess property in order to provide a range of file sizes that should be processed.

Data type

Long Integer

Possible values

0 to 4294967295 (or 0 to 2147483647 for languages with signed long integers such as VB)

Default value

4294967295 (No upper file size limit, all files qualify for processing)

Declaration (DLL API)  

DWORD XzGetMaxSizeToProcess( HXCEEDZIP hZip )

void XzSetMaxSizeToProcess( HXCEEDZIP hZip, DWORD dwValue )

Applicable methods

Zip, Unzip, ListZipContents, PreviewFiles, RemoveFiles