Saltar al contenido principal

ZipPackage class

Namespace: Velopack.NuGet

public class ZipPackage : PackageManifest

Inherits: PackageManifest

Constructors​

ConstructorSummary
ZipPackage

ZipPackage(filePath, loadUpdateExe)​

public ZipPackage(string filePath, bool loadUpdateExe = false)

Parameters

NameTypeDescription
filePathstring
loadUpdateExebool

Properties​

PropertySummary
Files
UpdateExeBytes
LoadedFromPath

Files​

public IEnumerable<ZipPackageFile> Files { get; }

UpdateExeBytes​

public byte[]? UpdateExeBytes { get; }

LoadedFromPath​

public string LoadedFromPath { get; }

Methods​

MethodSummary
ReadFile

ReadFile(archive, predicate)​

protected byte[]? ReadFile(ZipArchive archive, Func<ZipArchiveEntry, bool> predicate)

Parameters

NameTypeDescription
archiveZipArchive
predicateFunc<ZipArchiveEntry, bool>

Returns byte[]


Generated from Velopack 1.2.0