Dart.PowerTCP.Zip Namespace : Archive Class |
<DefaultMemberAttribute("Item")> <LicenseProviderAttribute(ZipLicenseProvider)> Public Class Archive Inherits System.ComponentModel.Component
Dim instance As Archive
[DefaultMember("Item")] [LicenseProvider(ZipLicenseProvider)] public class Archive : System.ComponentModel.Component
[DefaultMember("Item")] [LicenseProvider(ZipLicenseProvider)] public __gc class Archive : public System.ComponentModel.Component
[DefaultMember("Item")] [LicenseProvider(ZipLicenseProvider)] public ref class Archive : public System.ComponentModel.Component
Use the Archive component to compress files and Streams, and to decompress compressed archives. The Archive component provides the standard ICollection and IListSource interfaces, and contains ArchiveItem objects which represent an item (file, Stream, or directory) within the archive. Compression and decompression operations are provided on the Archive level (if you wish to apply operations to all items in the Archive) and decompression on the ArchiveItem level (if you wish to unzip selected files).
' Be sure to import the namespace by putting "Imports Dart.PowerTCP.Zip" ' at the top of your class. ' Preserve the path structure of the files Archive1.PreservePath = True ' Include any subdirectories Archive1.IncludeSubs = True ' Specify compression level Archive1.CompressionLevel = CompressionLevel.Medium ' Use the Deflate compression method Archive1.DefaultCompressionMethod = CompressionMethod.Deflate ' Exclude any text files Archive1.ExcludePattern = "*.txt" ' Set to use encryption Archive1.DefaultEncryption = Encryption.Standard ' Specify the password Archive1.Password = "testme" ' Perform the compression operation - this is the only required method for the operation Archive1.QuickZip("c:\\Test\\*.*", "c:\\test.zip")
// Be sure to import the namespace by putting "using Dart.PowerTCP.Zip;" // at the top of your class. // Preserve the path structure of the files archive1.PreservePath = true; // Include any subdirectories archive1.IncludeSubs = true; // Specify compression level archive1.CompressionLevel = CompressionLevel.Medium; // Use the Deflate compression method archive1.DefaultCompressionMethod = CompressionMethod.Deflate; // Exclude any text files archive1.ExcludePattern = "*.txt"; // Set to use encryption archive1.DefaultEncryption = Encryption.Standard; // Specify the password archive1.Password = "testme"; // Perform the compression operation - this is the only required method for the operation archive1.QuickZip("c:\\Test\\*.*", "c:\\test.zip");
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
Dart.PowerTCP.Zip.Archive