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 6.0.0+8c7432e50072e009353ea5f2c956ccf453476f71

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