Skip to content

CabEngine Class

Engine capable of packing and unpacking archives in the cabinet format.

MethodDescription
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.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Disposes of resources allocated by the cabinet engine.

protected void Dispose(
bool disposing
)
ParameterTypeDescription
disposingboolIf 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.

Checks whether a Stream begins with a header that indicates it is a valid cabinet file.

public bool IsArchive(
System.IO.Stream stream
)
ParameterTypeDescription
streamSystem.IO.StreamStream for reading the cabinet file.

bool True if the stream is a valid cabinet file (with no offset); false otherwise.