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 in which the downloaded update package is stored.
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 stability identifier, either Unstable or Stable.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsLengthAndHashOfPackageZipFileCorrect Determines whether the file length and hash of the package zip file are correct. This is a simple wrapper around VerifyLengthAndHashOfPackageZipFile(FileInfo, Boolean), which returns true if the verification was successful, and false if an exception was thrown.
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 information from the lines of the provided stream.
Public methodRemovePackageZipFileIfLengthOrHashDiffer(FileInfo) Removes the package's zip file if its length or hash does not match the expected values.
Public methodRemovePackageZipFileIfLengthOrHashDiffer(String) Removes the package's zip file if its length or hash does not match the expected values.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodVerifyLengthAndHashOfPackageZipFile Verifies the length and hash of the package's zip file. If length or hash differ, an exception is thrown.
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