IncrementalHash.CreateHash(HashAlgorithmName) 方法

定义

为指定算法创建 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 指定的哈希算法。

例外

hashAlgorithm.Namenull 或空字符串。

hashAlgorithm 不是已知的哈希算法。

适用于