Class Bzip2LoadOptions
Class Bzip2LoadOptions
Namespace: Aspose.Zip.Bzip2
Assembly: Aspose.Zip.dll (25.1.0)
加载 Aspose.Zip.Bzip2.Bzip2Archive 的选项。包含提取时引发的事件。
public class Bzip2LoadOptions
继承
继承成员
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
构造函数
Bzip2LoadOptions()
public Bzip2LoadOptions()
ExtractionProgressed
在提取某些字节时引发的事件。
public event EventHandler<progresseventargs> ExtractionProgressed
事件类型
EventHandler<ProgressEventArgs>
示例
Bzip2LoadOptions loadOptions = new Bzip2LoadOptions();
loadOptions.ExtractionProgressed += (s, e) => { percent = (int) ((double)(100 * e.ProceededBytes) / originalFileLength); };
备注
事件发送者是正在进行提取的 Aspose.Zip.Bzip2.Bzip2Archive 实例。Aspose.Zip.ProgressEventArgs.ProceededBytes 是提取后的字节数。