Xceed .NET Libraries Documentation
DefaultExtraHeaders Property


Xceed.Zip Assembly > Xceed.Zip Namespace > ZipArchive Class : DefaultExtraHeaders Property
Gets or sets the default extra headers of the items that are added to the zip file.
Syntax
'Declaration
 
Public Shared Property DefaultExtraHeaders As ExtraHeaders
'Usage
 
Dim value As ExtraHeaders
 
ZipArchive.DefaultExtraHeaders = value
 
value = ZipArchive.DefaultExtraHeaders
public static ExtraHeaders DefaultExtraHeaders {get; set;}

Property Value

An ExtraHeaders value representing the extra headers of the items that are added to the zip file. By default, a combination of ExtraHeaders.FileTimes, ExtraHeaders.Unicode, ExtraHeaders.UTF8Filename, and ExtraHeaders.UTF8Comment.

Remarks

If the ZippedFile.ZippedFile.ExtraHeaders or ZippedFolder.ZippedFolder.ExtraHeaders properties are explicitly set, the extra headers specified in the ExtraHeaders properties will be used rather than the default extra headers.

When a zip file is read , extra headers that are stored in the zip file will be read and processed regardless of the value of the DefaultExtraHeaders property.

New item(s) that are added to the zip file will inherit the DefaultExtraHeaders unless the ExtraHeaders property of an item has been explicitly set.

By default, a zip file created with a version of Xceed Zip for .NET prior to 2.2, WinZip, or Windows XP Compressed Folders, among others, will only preserve the last modified date and time.

As of version 4.1, the ExtraHeaders.Unicode extra header is deprecated. It should only be used if you need process zip files using old
versions of Xceed Zip for .NET or Xceed Zip Compression Library v4.1 and below.

It is not supported by third-party zip utilities. ExtraHeaders.UTF8Filename and ExtraHeaders.UTF8Comment have an improved structure and are supported by recent versions of WinZip, Info-Zip and others.

Requirements

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

See Also

Reference

ZipArchive Class
ZipArchive Members