Deployment Tools Foundation
CabInfo Class
Object representing a cabinet file on disk; provides access to
file-based operations on the cabinet file.
Declaration Syntax
C# | Visual Basic | Visual C++ |
[SerializableAttribute] public class CabInfo : ArchiveInfo
<SerializableAttribute> Public Class CabInfo Inherits ArchiveInfo
[SerializableAttribute] public ref class CabInfo : public ArchiveInfo
Members
All Members | Constructors | Methods | Properties | Fields | |
|
|
|
Icon | Member | Description |
---|---|---|
CabInfo(String) |
Creates a new CabinetInfo object representing a cabinet file in a specified path.
|
|
CabInfo(SerializationInfo, StreamingContext) |
Initializes a new instance of the CabinetInfo class with serialized data.
|
|
Attributes | Gets or sets the attributes for the current file or directory. (Inherited from FileSystemInfo.) |
|
CopyTo(String) |
Copies an existing archive to another location.
(Inherited from ArchiveInfo.) |
|
CopyTo(String, Boolean) |
Copies an existing archive to another location, optionally
overwriting the destination file.
(Inherited from ArchiveInfo.) |
|
CreateCompressionEngine()()()() |
Creates a compression engine that does the low-level work for
this object.
(Overrides ArchiveInfo.CreateCompressionEngine()()()().) |
|
CreateObjRef(Type) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
|
CreationTime | Gets or sets the creation time of the current file or directory. (Inherited from FileSystemInfo.) |
|
CreationTimeUtc | Gets or sets the creation time, in coordinated universal time (UTC), of the current file or directory. (Inherited from FileSystemInfo.) |
|
Delete()()()() |
Deletes the archive.
(Inherited from ArchiveInfo.) |
|
Directory |
Gets the directory that contains the archive.
(Inherited from ArchiveInfo.) |
|
DirectoryName |
Gets the full path of the directory that contains the archive.
(Inherited from ArchiveInfo.) |
|
Equals(Object) | (Inherited from Object.) |
|
Exists |
Checks if the archive exists.
(Inherited from ArchiveInfo.) |
|
Extension | Gets the string representing the extension part of the file. (Inherited from FileSystemInfo.) |
|
Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
FullName | Gets the full path of the directory or file. (Inherited from FileSystemInfo.) |
|
FullPath | Represents the fully qualified path of the directory or file. (Inherited from FileSystemInfo.) |
|
GetFiles()()()() |
Gets information about the files contained in the archive.
|
|
GetFiles(String) |
Gets information about the certain files contained in the archive file.
|
|
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetLifetimeService()()()() | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
GetObjectData(SerializationInfo, StreamingContext) | Sets the SerializationInfo object with the file name and additional exception information. (Inherited from FileSystemInfo.) |
|
GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) |
|
InitializeLifetimeService()()()() | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
IsValid()()()() |
Checks if the archive contains a valid archive header.
(Inherited from ArchiveInfo.) |
|
LastAccessTime | Gets or sets the time the current file or directory was last accessed. (Inherited from FileSystemInfo.) |
|
LastAccessTimeUtc | Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed. (Inherited from FileSystemInfo.) |
|
LastWriteTime | Gets or sets the time when the current file or directory was last written to. (Inherited from FileSystemInfo.) |
|
LastWriteTimeUtc | Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to. (Inherited from FileSystemInfo.) |
|
Length |
Gets the size of the archive.
(Inherited from ArchiveInfo.) |
|
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
|
MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
MoveTo(String) |
Moves an existing archive to another location.
(Inherited from ArchiveInfo.) |
|
Name |
Gets the file name of the archive.
(Inherited from ArchiveInfo.) |
|
OpenRead(String) |
Opens a file inside the archive for reading without actually
extracting the file to disk.
(Inherited from ArchiveInfo.) |
|
OpenText(String) |
Opens a file inside the archive for reading text with UTF-8 encoding
without actually extracting the file to disk.
(Inherited from ArchiveInfo.) |
|
OriginalPath | The path originally specified by the user, whether relative or absolute. (Inherited from FileSystemInfo.) |
|
Pack(String) |
Compresses all files in a directory into the archive.
Does not include subdirectories.
(Inherited from ArchiveInfo.) |
|
Pack(String, Boolean, CompressionLevel, EventHandler<(Of <<'(ArchiveProgressEventArgs>)>>)) |
Compresses all files in a directory into the archive, optionally
including subdirectories.
(Inherited from ArchiveInfo.) |
|
PackFiles(String, IList<(Of <<'(String>)>>), IList<(Of <<'(String>)>>)) |
Compresses files into the archive, specifying the names used to
store the files in the archive.
(Inherited from ArchiveInfo.) |
|
PackFiles(String, IList<(Of <<'(String>)>>), IList<(Of <<'(String>)>>), CompressionLevel, EventHandler<(Of <<'(ArchiveProgressEventArgs>)>>)) |
Compresses files into the archive, specifying the names used to
store the files in the archive.
(Inherited from ArchiveInfo.) |
|
PackFileSet(String, IDictionary<(Of <<'(String, String>)>>)) |
Compresses files into the archive, specifying the names used
to store the files in the archive.
(Inherited from ArchiveInfo.) |
|
PackFileSet(String, IDictionary<(Of <<'(String, String>)>>), CompressionLevel, EventHandler<(Of <<'(ArchiveProgressEventArgs>)>>)) |
Compresses files into the archive, specifying the names used to
store the files in the archive.
(Inherited from ArchiveInfo.) |
|
Refresh()()()() | Refreshes the state of the object. (Inherited from FileSystemInfo.) |
|
ToString()()()() |
Gets the full path of the archive.
(Inherited from ArchiveInfo.) |
|
Unpack(String) |
Extracts all files from an archive to a destination directory.
(Inherited from ArchiveInfo.) |
|
Unpack(String, EventHandler<(Of <<'(ArchiveProgressEventArgs>)>>)) |
Extracts all files from an archive to a destination directory,
optionally extracting only newer files.
(Inherited from ArchiveInfo.) |
|
UnpackFile(String, String) |
Extracts a single file from the archive.
(Inherited from ArchiveInfo.) |
|
UnpackFiles(IList<(Of <<'(String>)>>), String, IList<(Of <<'(String>)>>)) |
Extracts multiple files from the archive.
(Inherited from ArchiveInfo.) |
|
UnpackFiles(IList<(Of <<'(String>)>>), String, IList<(Of <<'(String>)>>), EventHandler<(Of <<'(ArchiveProgressEventArgs>)>>)) |
Extracts multiple files from the archive, optionally extracting
only newer files.
(Inherited from ArchiveInfo.) |
|
UnpackFileSet(IDictionary<(Of <<'(String, String>)>>), String) |
Extracts multiple files from the archive.
(Inherited from ArchiveInfo.) |
|
UnpackFileSet(IDictionary<(Of <<'(String, String>)>>), String, EventHandler<(Of <<'(ArchiveProgressEventArgs>)>>)) |
Extracts multiple files from the archive.
(Inherited from ArchiveInfo.) |
Remarks
Generally, the methods on this class are much easier to use than the
stream-based interfaces provided by the CabEngine class.
Inheritance Hierarchy
Assembly: Microsoft.Deployment.Compression.Cab (Module: Microsoft.Deployment.Compression.Cab.dll) Version: 3.0.0.0 (3.9.1006.0)