Interface IArchiveFileEntry

Interface IArchiveFileEntry

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

此界面代表一个档案文件输入。

public interface IArchiveFileEntry

Properties

Length

接收入口的长度为比特。

long? Length { get; }

财产价值

long ?

Name

获取入口名称。

string Name { get; }

财产价值

string

Remarks

仅用于压缩的档案,如 gzip、bzip2、lzip、lzma、xz、z 有“File.bin” 名称,除非其他名称可在标题中找到。

Methods

Extract(线条)

通过提供的路径将输入到文件系统。

FileInfo Extract(string path)

Parameters

path string

路径到目的地文件. 如果文件已经存在,它将被过写。

Returns

FileInfo

System.IO.FileInfo 例子包含提取的数据。

Exceptions

ArgumentNullException

path’ is null.

SecurityException

召唤者没有所需的访问许可。

ArgumentException

path’ 是空的,只包含白色空间,或包含无效的字符。

UnauthorizedAccessException

拒绝访问 path" 文件。

PathTooLongException

指定的 path’, 文件名, 或两者都超过系统定义的最大长度. 例如,在基于 Windows 的平台上,路径必须小于 248 个字符, 文件名必须小于 260 个字符。

NotSupportedException

文件在 path’ 中间包含一个列(:)。

Extract(Stream)

将输入到提供的流。

void Extract(Stream destination)

Parameters

destination Stream

目的地流,必须写作。

Exceptions

ArgumentException

destination’ does not support writing.

 中文