IncrementalHash.CreateHash(HashAlgorithmName) 方法

定义

hashAlgorithm指定的算法创建 IncrementalHash

public:
 static System::Security::Cryptography::IncrementalHash ^ CreateHash(System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public static System.Security.Cryptography.IncrementalHash CreateHash (System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
static member CreateHash : System.Security.Cryptography.HashAlgorithmName -> System.Security.Cryptography.IncrementalHash
Public Shared Function CreateHash (hashAlgorithm As HashAlgorithmName) As IncrementalHash

参数

hashAlgorithm
HashAlgorithmName

要执行的哈希算法的名称。

返回

IncrementalHash 实例已准备好计算由 hashAlgorithm指定的哈希算法。

例外

hashAlgorithmNamenull或空字符串。

hashAlgorithm 不是已知的哈希算法。

适用于