Class ArchiveInstanceInfo
名称: Aspose.Zip.ArchiveInfo 收藏: Aspose.Zip.dll (25.5.0)
代表有关档案例的信息。
public sealed class ArchiveInstanceInfo
Inheritance
继承人
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
AreFileNamesEncrypted
收到一个值,表明文件中的输入(文件)的名称是否被加密。
public bool AreFileNamesEncrypted { get; }
财产价值
FormatInfo
获取档案格式信息。
public ArchiveFormatInfo FormatInfo { get; }
财产价值
IsContentEncrypted
收到一个值,表明档案内容是否被加密。
public bool IsContentEncrypted { get; }
财产价值
Methods
GetArchiveFormatInfo(线条)
获取档案格式信息。
public static ArchiveFormatInfo GetArchiveFormatInfo(string fileName)
Parameters
fileName
string
文件档案的名称。
Returns
关于档案格式的信息。
Exceptions
fileName’ is null.
召唤者没有所需的访问许可。
fileName’ 是空的,只包含白色空间,或包含无效的字符。
拒绝访问 fileName’ 文件。
指定的 fileName’ 超过系统定义的最大长度. 例如,在基于 Windows 的平台上,路径必须小于 248 个字符,文件名必须小于 260 个字符。
文件在 fileName’ 中间包含一个列(:)。
在打开文件时出现了 I/O 错误。
GetArchiveFormatInfo(Stream)
获取档案格式信息。
public static ArchiveFormatInfo GetArchiveFormatInfo(Stream stream)
Parameters
stream
Stream
存档文件的流程。
Returns
关于档案格式的信息。
Exceptions
stream’ is null.
stream’ is not seekable.
GetArchiveInstanceInfo(线条)
获档案例信息。
public static ArchiveInstanceInfo GetArchiveInstanceInfo(string fileName)
Parameters
fileName
string
文件档案的名称。
Returns
如果格式未被检测到,则档案例或零的信息。
Exceptions
fileName’ is null.
召唤者没有所需的访问许可。
fileName’ 是空的,只包含白色空间,或包含无效的字符。
拒绝访问 fileName’ 文件。
指定的 fileName’ 超过系统定义的最大长度. 例如,在基于 Windows 的平台上,路径必须小于 248 个字符,文件名必须小于 260 个字符。
文件在 fileName’ 中间包含一个列(:)。
在打开文件时出现了 I/O 错误。
GetArchiveInstanceInfo(Stream)
获档案例信息。
public static ArchiveInstanceInfo GetArchiveInstanceInfo(Stream stream)
Parameters
stream
Stream
存档文件的流程。
Returns
如果格式未被检测到,则档案例或零的信息。
Exceptions
stream’ is null.
stream’ is not seekable.