Skip to content

CabFileInfo Class

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

MethodDescription
GetObjectData(info, context)Sets the SerializationInfo with information about the archive.
Refresh(newFileInfo)Refreshes the information in this object with new data retrieved from an archive.
PropertyDescription
CabinetGets or sets the cabinet that contains this file.
CabinetFolderNumberGets the number of the folder containing this file.
CabinetNameGets the full path of the cabinet that contains this file.
WixToolset.Dtf.Compression.Cab.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Sets the SerializationInfo with information about the archive.

public void GetObjectData(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context
)
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.

Refreshes the information in this object with new data retrieved from an archive.

protected void Refresh(
WixToolset.Dtf.Compression.ArchiveFileInfo newFileInfo
)
ParameterTypeDescription
newFileInfoWixToolset.Dtf.Compression.ArchiveFileInfoFresh instance for the same file just read from the archive.

This implementation refreshes the «see P:WixToolset.Dtf.Compression.Cab.CabFileInfo.CabinetFolderNumber» .

Gets or sets the cabinet that contains this file.

public CabInfo Cabinet { get; set; }

Gets the number of the folder containing this file.

public int CabinetFolderNumber { get; set; }

A single folder or the first folder of a cabinet (or chain of cabinets) is numbered 0.

Gets the full path of the cabinet that contains this file.

public string CabinetName { get; set; }