Xceed .NET Libraries Documentation
Creating a ZipItemHandler Object Snippet

The following examples show how to create a ZipItemLocalHeader object with each of the three available class constructors and illustrates the parameters available.

//Sets the filename of the item in the Zip archive. Default values are used for
//compression method / level and for encryption method / password (which
//is ""). 
ZipItemLocalHeader zipItemLocalHeader1 = new ZipItemLocalHeader(file.Name);
//Sets the filename and compression method / level. Encryption method /
//password (which is "").
ZipItemLocalHeader zipItemLocalHeader1 = new ZipItemLocalHeader(file.Name, 
  Xceed.Compression.CompressionMethod.Deflated, 
  Xceed.Compression.CompressionLevel.Highest);
//Sets the filename, compression method / level, and encryption method /
//password.
ZipItemLocalHeader zipItemLocalHeader1 = new ZipItemLocalHeader(file.Name,
  Xceed.Compression.CompressionMethod.Deflated, 
  Xceed.Compression.CompressionLevel.Highest,
  Xceed.Zip.EncryptionMethod.WinZipAes, "password");
'Sets the filename of the item in the Zip archive. Default values are used for
'compression method / level and for encryption method / password (which
'is "").
Dim zipItemLocalHeader1 As New ZipItemLocalHeader(file.Name)
'Sets the filename and compression method / level. Encryption method /
'password (which is "").
Dim zipItemLocalHeader1 As New ZipItemLocalHeader(file.Name,
  Xceed.Compression.CompressionMethod.Deflated,
  Xceed.Compression.CompressionLevel.Highest)
'Sets the filename, compression method / level, and encryption method /
'password.
Dim zipItemLocalHeader1 As New ZipItemLocalHeader(file.Name,
  Xceed.Compression.CompressionMethod.Deflated,
  Xceed.Compression.CompressionLevel.Highest,
  Xceed.Zip.EncryptionMethod.WinZipAes, "password")