Interface IArchive

Interface IArchive

名称: Aspose.Zip 收藏: Aspose.Zip.dll (25.5.0)

这个界面代表了一个档案。

public interface IArchive : IDisposable

Implements

IDisposable

Properties

FileEntries

收到 Aspose.Zip.IArchiveFileEntry 类型的输入,构成档案。

IEnumerable<iarchivefileentry> FileEntries { get; }

财产价值

IEnumerable < IArchiveFileEntry >

Remarks

仅压缩的档案,如gzip、bzip2、lzip、lzma、xz、z,由单一记录组成 - 档案本身。

Format

获取档案格式。

ArchiveFormat Format { get; }

财产价值

ArchiveFormat

Methods

ExtractToDirectory(线条)

将存档中的所有文件提取到所提供的目录中。

void ExtractToDirectory(string destinationDirectory)

Parameters

destinationDirectory string

路径到目录将提取的文件插入。

Remarks

如果目录不存在,它将被创建。

Exceptions

ArgumentNullException

destinationDirectory’ is null.

PathTooLongException

例如,在基于 Windows 的平台上,路径必须小于 248 个字符,文件名必须小于 260 个字符。

SecurityException

呼叫者没有必要的许可访问现有目录。

NotSupportedException

如果目录不存在,路径包含一个不属于驱动标签(“C:”)的肠道字符(:))。

ArgumentException

destinationDirectory’ is a zero-length string, contains only white space, or contains one or more invalid characters. You can query for invalid characters by using the System.IO.Path.GetInvalidPathChars method. -or- path is prefixed with, or contains, only a colon character (:).

IOException

路径指定的目录是一个文件. -or- 网络名称不明。

 中文