Class XarDirectoryEntry
اسم الفضاء : Aspose.Zip.Xar تجميع: Aspose.Zip.dll (25.5.0)
يمثل إدخال الدليل داخل أرشيف xar.
public sealed class XarDirectoryEntry : XarEntry
Inheritance
object ← XarEntry ← XarDirectoryEntry
الأعضاء الموروثين
XarEntry.ToString() , XarEntry.Name , XarEntry.FullPath , XarEntry.IsDirectory , XarEntry.Parent , XarEntry.CreationTime , XarEntry.LastAccessTime , XarEntry.LastWriteTime , XarEntry.ModificationTime , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Properties
AllEntries
يحصل على جميع إدخالات Aspose.Zip.Xar.XarEntry نوع تشكل الدليل بشكل متكرر.
public IEnumerable<xarentry> AllEntries { get; }
قيمة الممتلكات
IEnumerable <؛ XarEntry >
Directories
يحصل على إدخالات من نموذج Aspose.Zip.Xar.XarDirectoryEntry الذي يشكل الدليل.
public IEnumerable<xardirectoryentry> Directories { get; }
قيمة الممتلكات
IEnumerable <؛ XarDirectoryEntry >
Files
يحصل على إدخالات من Aspose.Zip.Xar.XarFileEntry النوع الذي يشكل الدليل.
public IEnumerable<xarfileentry> Files { get; }
قيمة الممتلكات
IEnumerable <؛ XarFileEntry >
FilesAndDirectories
يحصل على إدخالات من نموذج Aspose.Zip.Xar.XarEntry يشكل الدليل.
public IEnumerable<xarentry> FilesAndDirectories { get; }
قيمة الممتلكات
IEnumerable <؛ XarEntry >
Methods
ExtractToDirectory(الستار)
استخراج جميع الملفات في الدليل الحالي إلى الدليل المقدمة.
public void ExtractToDirectory(string destinationDirectory)
Parameters
destinationDirectory
string
الطريق إلى الدليل لوضع الملفات المستخرجة في.
Examples
using (var archive = new XarArchive("archive.xar"))
{
((XarDirectoryEntry)archive.Entries[0]).ExtractToDirectory("C:\\extracted");
}
Remarks
إذا لم يكن الدليل موجودًا ، فسيتم إنشاؤه.
Exceptions
الطريق صفر
على سبيل المثال، على منصات ويندوز، يجب أن تكون المسارات أقل من 248 حرف، وأسماء الملفات يجب أن تكون أقل من 260 حرف.
لا يتمتع المكالمة بالترخيص المطلوب للوصول إلى الدليل الحالي.
إذا لم يكن الدليل موجودًا ، فإن المسار يحتوي على حرف العمود الفقري (:) الذي ليس جزءًا من علامة محرك الأقراص (“C:”).
المسار هو سلسلة صفر الطول، يحتوي فقط على مساحة بيضاء، أو يحتوي على شخصية واحدة أو أكثر غير مؤهلة.يمكنك الاستعلام عن شخصيات غير مؤهلة باستخدام طريقة System.IO.Path.GetInvalidPathChars. -أو- المسار محدد مسبقا مع، أو يحتوي، فقط حرف العمود الفقري (:).
المجلد المحدد بالطريق هو ملف. -أو- اسم الشبكة غير معروف.
وقد تم تدمير الأرشيف