共用方式為


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 不是已知的哈希演算法。

適用於