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 &lt؛ IArchiveFileEntry >

Remarks

الأرشيف للضغط فقط، مثل gzip، bzip2، lzip، lzma، xz، z يتكون من السجل الوحيد - الأرشيف نفسه.

Format

احصل على تنسيق الأرشيف

ArchiveFormat Format { get; }

قيمة الممتلكات

ArchiveFormat

Methods

ExtractToDirectory(الستار)

استخراج جميع الملفات في الأرشيف إلى الدليل المقدمة.

void ExtractToDirectory(string destinationDirectory)

Parameters

destinationDirectory string

الطريق إلى الدليل لوضع الملفات المستخرجة في.

Remarks

إذا لم يكن الدليل موجودًا ، فسيتم إنشاؤه.

Exceptions

ArgumentNullException

destinationDirectory’ is null.

PathTooLongException

على سبيل المثال، على منصات ويندوز، يجب أن تكون المسارات أقل من 248 حرف، وأسماء الملفات يجب أن تكون أقل من 260 حرف.

SecurityException

لا يتمتع المكالمة بالترخيص المطلوب للوصول إلى الدليل الحالي.

NotSupportedException

إذا لم يكن الدليل موجودًا ، فإن المسار يحتوي على حرف العمود الفقري (:) الذي ليس جزءًا من علامة محرك الأقراص (“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

المجلد المحدد بالطريق هو ملف. -أو- اسم الشبكة غير معروف.

 عربي