CabEngine Class
Engine capable of packing and unpacking archives in the cabinet format.
Methods
Method | Description |
---|---|
Dispose(disposing) | Disposes of resources allocated by the cabinet engine. |
IsArchive(stream) | Checks whether a Stream begins with a header that indicates it is a valid cabinet file. |
WixToolset.Dtf.Compression.Cab.dll
version 5.0.2+aa65968c419420d32e3e1b647aea0082f5ca5b78
Dispose(disposing) Method
Disposes of resources allocated by the cabinet engine.
Declaration
protected void Dispose(
bool disposing
)
Parameters
Parameter | Type | Description |
---|---|---|
disposing | bool | If true, the method has been called directly or indirectly by a user's code, so managed and unmanaged resources will be disposed. If false, the method has been called by the runtime from inside the finalizer, and only unmanaged resources will be disposed. |
IsArchive(stream) Method
Checks whether a Stream begins with a header that indicates it is a valid cabinet file.
Declaration
public bool IsArchive(
System.IO.Stream stream
)
Parameters
Parameter | Type | Description |
---|---|---|
stream | System.IO.Stream | Stream for reading the cabinet file. |
Return value
bool
True if the stream is a valid cabinet file (with no offset); false otherwise.