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

Archives for compression only, such as gzip, bzip2, lzip, lzma, xz, z consist of the single record - the archive itself

Format

รับรูปแบบไฟล์

ArchiveFormat Format { get; }

คุณสมบัติมูลค่า

ArchiveFormat

Methods

ExtractToDirectory(รั้ว)

extract all the files in the archive to the directory provided

void ExtractToDirectory(string destinationDirectory)

Parameters

destinationDirectory string

เส้นทางไปยังไดเรกทอรีเพื่อวางไฟล์ที่สกัด

Remarks

หากไดเรกทอรีไม่ได้มีมันจะถูกสร้างขึ้น

Exceptions

ArgumentNullException

destinationDirectory’ is null.

PathTooLongException

เส้นทางที่ระบุชื่อไฟล์หรือทั้งสองเกินความยาวสูงสุดที่กําหนดโดยระบบ ตัวอย่างเช่นบนแพลตฟอร์มที่ใช้ Windows เส้นทางจะต้องน้อยกว่า 248 หมายเลขและชื่อไฟล์จะต้องน้อยกว่า 260 หมายเลข

SecurityException

ผู้โทรไม่ได้รับอนุญาตที่จําเป็นในการเข้าถึงไดเรกทอรีที่มีอยู่

NotSupportedException

หากไดเรกทอรีไม่ได้มีเส้นทางมีตัวอักษรของ colon (:) ซึ่งไม่ได้เป็นส่วนหนึ่งของแท็กไดรฟ์ (“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

แผนที่ที่ระบุโดยเส้นทางเป็นไฟล์ -หรือ- ชื่อเครือข่ายไม่ทราบ

 แบบไทย