PowerTCP Zip Compression for .NET
Overwrite Enumeration
Example Example 




Enumerates values which determine how files are overwritten.
Syntax
<DescriptionAttribute("Enumerate the overwrite choices that Dart Zip component currently supports. ")>
<CategoryAttribute("Enumeration")>
Public Enum Overwrite 
   Inherits System.Enum
Dim instance As Overwrite
[Description("Enumerate the overwrite choices that Dart Zip component currently supports. ")]
[Category("Enumeration")]
public enum Overwrite : System.Enum 
[Description("Enumerate the overwrite choices that Dart Zip component currently supports. ")]
[Category("Enumeration")]
__value public enum Overwrite : public System.Enum 
[Description("Enumerate the overwrite choices that Dart Zip component currently supports. ")]
[Category("Enumeration")]
public enum class Overwrite : public System.Enum 
Members
MemberDescription
AlwaysOverwrite all files.
NeverDo not overwrite any files.
Remarks

This enumeration is used by the "unzip"-related Archive methods to specify under what conditions files with conflicting file names should be overwritten.

Example
The following example demonstrates using QuickUnzip and specifying specific options. Only QuickUnzip is required in this operation.
' Be sure to import the namespace by putting "Imports Dart.PowerTCP.Zip"
' at the top of your class.

' Preserve the path when unzipping
Archive1.PreservePath = True

' Overwrite any existing files
Archive1.Overwrite = Overwrite.Always

' Unzip all the files to c:\test
Archive1.QuickUnzip("c:\test.zip", "c:\Test")
// Be sure to import the namespace by putting "using Dart.PowerTCP.Zip;"
// at the top of your class.

// Preserve the path when unzipping
archive1.PreservePath = true;

// Overwrite any existing files
archive1.Overwrite = Overwrite.Always;

// Unzip all the files to c:\test
archive1.QuickUnzip("c:\\test.zip", "c:\\Test");
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Dart.PowerTCP.Zip.Overwrite

See Also

Reference

Dart.PowerTCP.Zip Namespace


PowerTCP Zip for .NET Documentation Version 2.1.1
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic