Skip to main content

ZipFileInfo Class

Object representing a compressed file within a zip package; provides operations for getting the file properties and extracting the file.

Methods

MethodDescription
GetObjectData(info, context)Sets the SerializationInfo with information about the archive.

Properties

PropertyDescription
CompressedLengthGets the compressed size of the file in bytes.
CompressionMethodGets the method used to compress this file.

WixToolset.Dtf.Compression.Zip.dll version 5.0.2+aa65968c419420d32e3e1b647aea0082f5ca5b78

GetObjectData(info, context) Method

Sets the SerializationInfo with information about the archive.

Declaration

public void GetObjectData(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context
)

Parameters

ParameterTypeDescription
infoSystem.Runtime.Serialization.SerializationInfoThe SerializationInfo that holds the serialized object data.
contextSystem.Runtime.Serialization.StreamingContextThe StreamingContext that contains contextual information about the source or destination.

CompressedLength Property

Gets the compressed size of the file in bytes.

Declaration

public System.Int64 CompressedLength { get; set; } 

CompressionMethod Property

Gets the method used to compress this file.

Declaration

public ZipCompressionMethod CompressionMethod { get; set; }