Class WimDirectoryEntry

Class WimDirectoryEntry

اسم الفضاء : Aspose.Zip.Wim تجميع: Aspose.Zip.dll (25.5.0)

يمثل قائمة واحدة داخل أرشيف wim.

public sealed class WimDirectoryEntry : WimEntry

Inheritance

object WimEntry WimDirectoryEntry

الأعضاء الموروثين

WimEntry.ToString() , WimEntry.Archive , WimEntry.Image , WimEntry.Parent , WimEntry.Name , WimEntry.ShortName , WimEntry.FullPath , WimEntry.ChangeTime , WimEntry.CreationTime , WimEntry.LastAccessTime , WimEntry.LastWriteTime , WimEntry.ModificationTime , 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()

Properties

AllEntries

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

public IEnumerable<wimentry> AllEntries { get; }

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

IEnumerable &lt؛ WimEntry >

Directories

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

public ReadOnlyCollection<wimdirectoryentry> Directories { get; }

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

ReadOnlyCollection &lt؛ WimDirectoryEntry >

Files

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

public ReadOnlyCollection<wimfileentry> Files { get; }

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

ReadOnlyCollection &lt؛ WimFileEntry >

FilesAndDirectories

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

public IEnumerable<wimentry> FilesAndDirectories { get; }

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

IEnumerable &lt؛ WimEntry >

Methods

ExtractToDirectory(الستار)

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

public void ExtractToDirectory(string destinationDirectory)

Parameters

destinationDirectory string

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

Examples

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

Remarks

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

Exceptions

ArgumentNullException

الطريق صفر

PathTooLongException

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

SecurityException

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

NotSupportedException

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

ArgumentException

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

IOException

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

InvalidDataException

وقد تم تدمير الأرشيف

 عربي