Class ArchiveInstanceInfo

Class ArchiveInstanceInfo

Tên không gian: Aspose.Zip.ArchiveInfo Tổng hợp: Aspose.Zip.dll (25.5.0)

Hiển thị thông tin về trường hợp lưu trữ.

public sealed class ArchiveInstanceInfo

Inheritance

object ArchiveInstanceInfo

Thành viên thừa kế

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

Properties

AreFileNamesEncrypted

Nó nhận được một giá trị cho thấy liệu tên của các mục (các tệp) của lưu trữ có được mã hóa hay không.

public bool AreFileNamesEncrypted { get; }

Giá trị bất động sản

bool

FormatInfo

Nhận thông tin định dạng lưu trữ.

public ArchiveFormatInfo FormatInfo { get; }

Giá trị bất động sản

ArchiveFormatInfo

IsContentEncrypted

Nhận một giá trị cho thấy liệu nội dung của lưu trữ được mã hóa hay không.

public bool IsContentEncrypted { get; }

Giá trị bất động sản

bool

Methods

GetArchiveFormatInfo(String)

Nhận thông tin định dạng archive.

public static ArchiveFormatInfo GetArchiveFormatInfo(string fileName)

Parameters

fileName string

Tên file của file file.

Returns

ArchiveFormatInfo

Thông tin về file format.

Exceptions

ArgumentNullException

fileName’ is null.

SecurityException

Người gọi không có giấy phép cần thiết để truy cập.

ArgumentException

fileName’ là trống, chỉ chứa không gian trắng, hoặc chứa các ký tự vô hiệu.

UnauthorizedAccessException

Truy cập vào tệp fileName’ bị từ chối.

PathTooLongException

Ví dụ, trên các nền tảng dựa trên Windows, các con đường phải nhỏ hơn 248 ký tự, và tên tập tin phải nhỏ hơn 260 ký tự.

NotSupportedException

File tại fileName’ chứa một cột (:) ở giữa dòng.

IOException

Một lỗi I/O xảy ra trong khi mở tệp.

GetArchiveFormatInfo(Stream)

Nhận thông tin định dạng archive.

public static ArchiveFormatInfo GetArchiveFormatInfo(Stream stream)

Parameters

stream Stream

dòng của file lưu trữ.

Returns

ArchiveFormatInfo

Thông tin về file format.

Exceptions

ArgumentNullException

stream’ is null.

ArgumentException

stream’ is not seekable.

GetArchiveInstanceInfo(String)

Lưu trữ file instance info.

public static ArchiveInstanceInfo GetArchiveInstanceInfo(string fileName)

Parameters

fileName string

Tên file của file file.

Returns

ArchiveInstanceInfo

Thông tin về trường hợp lưu trữ hoặc null nếu định dạng không được phát hiện.

Exceptions

ArgumentNullException

fileName’ is null.

SecurityException

Người gọi không có giấy phép cần thiết để truy cập.

ArgumentException

fileName’ là trống, chỉ chứa không gian trắng, hoặc chứa các ký tự vô hiệu.

UnauthorizedAccessException

Truy cập vào tệp fileName’ bị từ chối.

PathTooLongException

Ví dụ, trên các nền tảng dựa trên Windows, các con đường phải nhỏ hơn 248 ký tự, và tên tập tin phải nhỏ hơn 260 ký tự.

NotSupportedException

File tại fileName’ chứa một cột (:) ở giữa dòng.

IOException

Một lỗi I/O xảy ra trong khi mở tệp.

GetArchiveInstanceInfo(Stream)

Lưu trữ file instance info.

public static ArchiveInstanceInfo GetArchiveInstanceInfo(Stream stream)

Parameters

stream Stream

dòng của file lưu trữ.

Returns

ArchiveInstanceInfo

Thông tin về trường hợp lưu trữ hoặc null nếu định dạng không được phát hiện.

Exceptions

ArgumentNullException

stream’ is null.

ArgumentException

stream’ is not seekable.

 Tiếng Việt