Class XarLoadOptions

Class XarLoadOptions

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

ตัวเลือกที่ใช้ในการโหลดไฟล์บีบอัดจากไฟล์ที่ถูกบีบอัด

public class XarLoadOptions

การสืบทอด

objectXarLoadOptions

สมาชิกที่สืบทอด

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

ตัวสร้าง

XarLoadOptions()

public XarLoadOptions()

คุณสมบัติ

EntryExtractionProgressed

รับหรือกำหนดตัวแทนที่ถูกเรียกเมื่อมีการดึงข้อมูลบางส่วนออกมา

public EventHandler<progresseventargs> EntryExtractionProgressed { get; set; }

ค่าของคุณสมบัติ

EventHandler<ProgressEventArgs&gt;

ตัวอย่าง

XarArchive archive = new XarArchive("archive.xar", 
new XarLoadOptions() { EntryExtractionProgressed = (s, e) =&gt; { int percent = (int)((100 * e.ProceededBytes) / ((XarFileEntry)s).Length); } })

หมายเหตุ

ผู้ส่งเหตุการณ์คืออินสแตนซ์ Aspose.Zip.Xar.XarFileEntry ที่มีการดึงข้อมูลที่ก้าวหน้าอยู่

 แบบไทย