Xceed .NET Libraries Documentation
ReadEndHeader() Method


Xceed.Zip Assembly > Xceed.Zip.ReaderWriter Namespace > ZipReader Class : ReadEndHeader() Method
Reads the "Ending Header" in the zip stream and returns a ZipEndHeader object.
Syntax
'Declaration
 
Public Function ReadEndHeader() As ZipEndHeader
'Usage
 
Dim instance As ZipReader

Dim value As ZipEndHeader

 

value = instance.ReadEndHeader()
public ZipEndHeader ReadEndHeader()
Remarks

Calling this method is optional. You only need to call this method if you want to access the ZipEndHeader.

With the returned ZipEndHeader object, you can access the zip comment.

It is only valid to call this method once all the files have been read from the stream (i.e., when ReadItemLocalHeader returns a null reference (Nothing in Visual Basic)). Otherwise, the method will throw a InvalidOperationException exception.

The method will only return a ZipEndHeader object the first time it is called. After that the stream will have been read past the "Ending Header" and the method will return a null reference (Nothing in Visual Basic).

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

ZipReader Class
ZipReader Members