Parameters
- method
- The compression method.
- level
- The compression level.
Return Value
true if compression will be used; false otherwise.
The method changes the specified values if necessary. If the specified compression method is Stored, it sets the compression level to Normal.
If the specified compression level is None, it sets the compression method to Stored unless the Deflated or Deflated64 compression method has been specified, since these methods support writing uncompressed data in their format.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2