Skip to main content

CabFileInfo Class

Object representing a compressed file within a cabinet 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.
Refresh(newFileInfo)Refreshes the information in this object with new data retrieved from an archive.

Properties

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

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.

Refresh(newFileInfo) Method

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

Declaration

protected void Refresh(
WixToolset.Dtf.Compression.ArchiveFileInfo newFileInfo
)

Parameters

ParameterTypeDescription
newFileInfoWixToolset.Dtf.Compression.ArchiveFileInfoFresh instance for the same file just read from the archive.

Remarks

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

Cabinet Property

Gets or sets the cabinet that contains this file.

Declaration

public CabInfo Cabinet { get; set; } 

CabinetFolderNumber Property

Gets the number of the folder containing this file.

Declaration

public int CabinetFolderNumber { get; set; } 

Remarks

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

CabinetName Property

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

Declaration

public string CabinetName { get; set; }