CabFileInfo Class
Object representing a compressed file within a cabinet package; provides operations for getting the file properties and extracting the file.
Methods
Method | Description |
---|---|
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
Property | Description |
---|---|
Cabinet | Gets or sets the cabinet that contains this file. |
CabinetFolderNumber | Gets the number of the folder containing this file. |
CabinetName | Gets the full path of the cabinet that contains this file. |
WixToolset.Dtf.Compression.Cab.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
Parameter | Type | Description |
---|---|---|
info | System.Runtime.Serialization.SerializationInfo | The SerializationInfo that holds the serialized object data. |
context | System.Runtime.Serialization.StreamingContext | The 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
Parameter | Type | Description |
---|---|---|
newFileInfo | WixToolset.Dtf.Compression.ArchiveFileInfo | Fresh 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; }