Class ArchiveInstanceInfo

Class ArchiveInstanceInfo

Namespace: Aspose.Zip.ArchiveInfo
Assembly: Aspose.Zip.dll (25.2.0)

Represents information about the archive instance.

public sealed class ArchiveInstanceInfo

Inheritance

objectArchiveInstanceInfo

Inherited Members

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

AreFileNamesEncrypted

Gets a value indicating whether names of entries (files) of the archive are encrypted.

public bool AreFileNamesEncrypted { get; }

Property Value

bool

FormatInfo

Gets the archive format info.

public ArchiveFormatInfo FormatInfo { get; }

Property Value

ArchiveFormatInfo

IsContentEncrypted

Gets a value indicating whether content of the archive is encrypted.

public bool IsContentEncrypted { get; }

Property Value

bool

Methods

GetArchiveFormatInfo(string)

Gets archive format info.

public static ArchiveFormatInfo GetArchiveFormatInfo(string fileName)

Parameters

fileName string

The filename of the archive file.

Returns

ArchiveFormatInfo

Information about archive format.

Exceptions

ArgumentNullException

fileName is null.

SecurityException

The caller does not have the required permission to access.

ArgumentException

The fileName is empty, contains only white spaces, or contains invalid characters.

UnauthorizedAccessException

Access to file fileName is denied.

PathTooLongException

The specified fileName exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.

NotSupportedException

File at fileName contains a colon (:) in the middle of the string.

IOException

An I/O error occurred while opening the file.

GetArchiveFormatInfo(Stream)

Gets archive format info.

public static ArchiveFormatInfo GetArchiveFormatInfo(Stream stream)

Parameters

stream Stream

The stream of the archive file.

Returns

ArchiveFormatInfo

Information about archive format.

Exceptions

ArgumentNullException

stream is null.

ArgumentException

stream is not seekable.

GetArchiveInstanceInfo(string)

Gets archive instance info.

public static ArchiveInstanceInfo GetArchiveInstanceInfo(string fileName)

Parameters

fileName string

The filename of the archive file.

Returns

ArchiveInstanceInfo

Information about archive instance or null if format was not detected.

Exceptions

ArgumentNullException

fileName is null.

SecurityException

The caller does not have the required permission to access.

ArgumentException

The fileName is empty, contains only white spaces, or contains invalid characters.

UnauthorizedAccessException

Access to file fileName is denied.

PathTooLongException

The specified fileName exceeds the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.

NotSupportedException

File at fileName contains a colon (:) in the middle of the string.

IOException

An I/O error occurred while opening the file.

GetArchiveInstanceInfo(Stream)

Gets archive instance info.

public static ArchiveInstanceInfo GetArchiveInstanceInfo(Stream stream)

Parameters

stream Stream

The stream of the archive file.

Returns

ArchiveInstanceInfo

Information about archive instance or null if format was not detected.

Exceptions

ArgumentNullException

stream is null.

ArgumentException

stream is not seekable.

 English