ImageStoreUtility.ComputeHash(String, String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compute hash of file or directory. Directory hash uses Merkel tree to compute hash
public static string ComputeHash (string algorithm, string path, bool ignoreCase);
static member ComputeHash : string * string * bool -> string
Public Shared Function ComputeHash (algorithm As String, path As String, ignoreCase As Boolean) As String
Parameters
- algorithm
- String
algorithm to compute hash, sha256
- path
- String
path to the file or directory
- ignoreCase
- Boolean
if path is directory, this parameter is effective. If true, names in the directory are transformed to lower-case to compute hash.
Returns
the hash value in the format of hex string e.g. 0123456789ABCDEF