次の方法で共有


ImageStoreUtility.ComputeHash(String, String, Boolean) メソッド

定義

ファイルまたはディレクトリのハッシュを計算します。 ディレクトリ ハッシュでは、Merkel ツリーを使用してハッシュを計算します

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

パラメーター

algorithm
String

ハッシュを計算するアルゴリズム、sha256

path
String

ファイルまたはディレクトリへのパス

ignoreCase
Boolean

path が directory の場合、このパラメーターは有効です。 true の場合、ディレクトリ内の名前は小文字に変換され、ハッシュが計算されます。

戻り値

16 進文字列形式のハッシュ値 (例: 0123456789ABCDEF)

適用対象