IncrementalHash.CreateHash(HashAlgorithmName) Méthode

Définition

Crée un IncrementalHash pour l’algorithme spécifié.

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

Paramètres

hashAlgorithm
HashAlgorithmName

Nom de l’algorithme de hachage à exécuter.

Retours

Instance de IncrementalHash prête pour le calcul de l’algorithme de hachage spécifié par hashAlgorithm.

Exceptions

hashAlgorithm.Name est null ou une chaîne vide.

hashAlgorithm n’est pas un algorithme de hachage connu.

S’applique à