GetPackageHash(PackageHashAlgorithm algorithm) Method

Returns the hash of the package using the specified algorithm if it is available; otherwise returns null (Nothing in Visual Basic).

Syntax

public abstract byte[] GetPackageHash(PackageHashAlgorithm algorithm)

Parameters

algorithm
Type: PackageHashAlgorithm

The desired hash algorithm.

Returns

The hash of the package using the specified algorithm if it is available; otherwise null (Nothing in Visual Basic).