Class ZstandardLoadOptions
Class ZstandardLoadOptions
Namespace: Aspose.Zip.Zstandard
Assembly: Aspose.Zip.dll (25.1.0)
从压缩文件加载 Aspose.Zip.Zstandard.ZstandardArchive 的选项。包含在提取时引发的事件。
public class ZstandardLoadOptions
继承
继承成员
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
构造函数
ZstandardLoadOptions()
public ZstandardLoadOptions()
ExtractionProgressed
获取或设置在提取某些字节时调用的委托。
public event EventHandler<progresseventargs> ExtractionProgressed
事件类型
EventHandler<ProgressEventArgs>
示例
ZstandardArchive archive = new ZstandardArchive("archive.zst",
new ZStandardLoadOptions() { EntryExtractionProgressed = (s, e) => { int percent = (int)((100 * e.ProceededBytes) / length); } })
备注
事件发送者是正在进行提取的 Aspose.Zip.Zstandard.ZstandardArchive 实例。