Class WimDirectoryEntry

Class WimDirectoryEntry

Namespace: Aspose.Zip.Wim
Assembly: Aspose.Zip.dll (25.1.0)

يمثل دليلاً واحدًا داخل أرشيف wim.

public sealed class WimDirectoryEntry : WimEntry

الوراثة

objectWimEntryWimDirectoryEntry

الأعضاء الموروثة

WimEntry.ToString(), WimEntry.Archive, WimEntry.Image, WimEntry.Parent, WimEntry.Name, WimEntry.ShortName, WimEntry.FullPath, WimEntry.ChangeTime, WimEntry.CreationTime, WimEntry.LastAccessTime, WimEntry.LastWriteTime, WimEntry.FileAttributes, WimEntry.AlternateDataStreams, WimEntry.HardLink, WimEntry.HasHardLinks, WimEntry.IsDirectory, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

الخصائص

AllEntries

يحصل على جميع الإدخالات من نوع Aspose.Zip.Wim.WimEntry التي تشكل الدليل بشكل متكرر.

public IEnumerable<wimentry> AllEntries { get; }

قيمة الخاصية

IEnumerable<WimEntry&gt;

Directories

يحصل على إدخالات من نوع Aspose.Zip.Wim.WimDirectoryEntry التي تشكل الدليل.

public ReadOnlyCollection<wimdirectoryentry> Directories { get; }

قيمة الخاصية

ReadOnlyCollection<WimDirectoryEntry&gt;

Files

يحصل على إدخالات من نوع Aspose.Zip.Wim.WimFileEntry التي تشكل الدليل.

public ReadOnlyCollection<wimfileentry> Files { get; }

قيمة الخاصية

ReadOnlyCollection<WimFileEntry&gt;

FilesAndDirectories

يحصل على إدخالات من نوع Aspose.Zip.Wim.WimEntry التي تشكل الدليل.

public IEnumerable<wimentry> FilesAndDirectories { get; }

قيمة الخاصية

IEnumerable<WimEntry&gt;

الطرق

ExtractToDirectory(string)

يستخرج جميع الملفات في الدليل الحالي إلى الدليل المحدد.

public void ExtractToDirectory(string destinationDirectory)

المعلمات

destinationDirectory string

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

أمثلة

using (var archive = new WimArchive("archive.wim")) 
{ 
   archive.Images[0].RootDirectory.ExtractToDirectory(@"C:\\extracted");
}

الملاحظات

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

الاستثناءات

ArgumentNullException

المسار هو null

PathTooLongException

المسار أو اسم الملف المحدد، أو كلاهما، يتجاوز الطول الأقصى المحدد بواسطة النظام. على سبيل المثال، على أنظمة التشغيل المعتمدة على Windows، يجب أن تكون المسارات أقل من 248 حرفًا ويجب أن تكون أسماء الملفات أقل من 260 حرفًا.

SecurityException

لا يمتلك المستدعي الإذن المطلوب للوصول إلى الدليل الموجود.

NotSupportedException

إذا لم يكن الدليل موجودًا، يحتوي المسار على حرف نقطتين (:) ليس جزءًا من تسمية محرك (“C:").

ArgumentException

المسار هو سلسلة بطول صفر، يحتوي فقط على فراغ، أو يحتوي على حرف أو أكثر غير صالح. يمكنك الاستعلام عن الأحرف غير الصالحة باستخدام طريقة System.IO.Path.GetInvalidPathChars. -أو- المسار مسبوقًا بـ، أو يحتوي فقط على حرف نقطتين (:).

IOException

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

InvalidDataException

الأرشيف تالف.

 عربي