Class XarLoadOptions
Class XarLoadOptions
Namespace: Aspose.Zip.Xar
Assembly: Aspose.Zip.dll (25.1.0)
Tùy chọn với các tệp nén được tải từ tệp nén.
public class XarLoadOptions
Kế thừa
Các thành viên kế thừa
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Các hàm khởi tạo
XarLoadOptions()
public XarLoadOptions()
Các thuộc tính
EntryExtractionProgressed
Lấy hoặc đặt delegate được gọi khi một số byte đã được trích xuất.
public EventHandler<progresseventargs> EntryExtractionProgressed { get; set; }
Giá trị thuộc tính
EventHandler<ProgressEventArgs>
Ví dụ
XarArchive archive = new XarArchive("archive.xar",
new XarLoadOptions() { EntryExtractionProgressed = (s, e) => { int percent = (int)((100 * e.ProceededBytes) / ((XarFileEntry)s).Length); } })
Nhận xét
Người gửi sự kiện là thể hiện của Aspose.Zip.Xar.XarFileEntry mà việc trích xuất đang diễn ra.