Click or drag to resize

PackageInfo Methods

The PackageInfo type exposes the following members.

Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberGetDownloadDirectoryGets the directory where to store the downloaded update package.
Public methodStatic memberGetHashAsStringGets the hash as hexadecimal string.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetLastUpdateCheckTimeUtcGets the last time a check for new updates was made
Public methodStatic memberGetStableIdentifierGets the stable identifier (either 'Unstable' or 'Stable').
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIsValidStableIdentifierDetermines whether the provided string designates either the stable or the unstable build.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberReadPackageFromCommandLine Reads a package from command line arguments.
Public methodStatic memberReadPackageFromJson(JsonNode) Reads a single package from a Json package node.
Public methodStatic memberReadPackageFromJson(Stream) Reads a single package from a Json file. The outer node of the file has to be a package node.
Public methodStatic memberReadPackageFromText Create a package info from a single line.
Public methodStatic memberReadPackagesFromJson Reads multiple packages from a Json file. The outer node of the Json file has to be an array of package nodes.
Public methodStatic memberReadPackagesFromText_Before2024_11Gets the package infos from the lines of the provided stream.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodVerifyLengthAndHashOfPackageZipFileInFolder Verifies the length and hash of package zip file. If length or hash differ, an exception is thrown.
Public methodWritePackageToJson(Stream) Saves the package to a stream. Intended for MakePackage, in which every package info is saved into a single file.
Public methodWritePackageToJson(Utf8JsonWriter) Saves the package using a Json writer. This call can be used to save more than one package into a file.
Public methodWritePackageToText Writes the (old style) package to one line of text.
Top
See Also