Class CabArchive

CabArchive class

This class represents a CAB archive file.

public class CabArchive : IArchive

Constructors

NameDescription
CabArchive(CabEntrySettings)Initializes a new instance of the CabArchive class prepared for compressing.
CabArchive(Stream, CabLoadOptions)Initializes a new instance of the CabArchive class and composes an entry list can be extracted from the archive.
CabArchive(string, CabLoadOptions)Initializes a new instance of the CabArchive class and composes an entry list can be extracted from the archive.

Properties

NameDescription
Entries { get; }Gets entries of CabEntry type constituting the archive.

Methods

NameDescription
CreateEntries(DirectoryInfo, bool)Adds to the archive all files, recursively, from the specified directory.
CreateEntries(string, bool)Adds to the archive all files recursively from the specified directory path.
CreateEntry(string, FileInfo, CabEntrySettings)Create a single entry within the archive.
CreateEntry(string, Stream, CabEntrySettings)Create a single entry within the archive.
CreateEntry(string, string, CabEntrySettings)Create a single entry within the archive.
Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
ExtractToDirectory(string)Extracts all the files in the archive to the directory provided.
Save(Stream, CabSaveOptions)Saves archive to the stream provided.
Save(string, CabSaveOptions)Saves archive to the destination file provided.

See Also