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.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

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; }