IncrementalHash.CreateHash(HashAlgorithmName) Method

Definition

Creates an IncrementalHash for the specified algorithm.

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

Parameters

hashAlgorithm
HashAlgorithmName

The name of the hash algorithm to perform.

Returns

An IncrementalHash instance ready to compute the hash algorithm specified by hashAlgorithm.

Exceptions

hashAlgorithm.Name is null or an empty string.

hashAlgorithm is not a known hash algorithm.

Applies to