Class XarLoadOptions
Class XarLoadOptions
Namespace: Aspose.Zip.Xar
Assembly: Aspose.Zip.dll (25.1.0)
从压缩文件加载归档的选项。
public class XarLoadOptions
继承
继承成员
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>
示例
XarArchive archive = new XarArchive("archive.xar",
new XarLoadOptions() { EntryExtractionProgressed = (s, e) => { int percent = (int)((100 * e.ProceededBytes) / ((XarFileEntry)s).Length); } })
备注
事件发送者是正在进行提取的 Aspose.Zip.Xar.XarFileEntry 实例。