SymmetricAlgorithm.SetKey(ReadOnlySpan<Byte>) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Définit la clé de cette instance.
public:
void SetKey(ReadOnlySpan<System::Byte> key);
public void SetKey(ReadOnlySpan<byte> key);
member this.SetKey : ReadOnlySpan<byte> -> unit
Public Sub SetKey (key As ReadOnlySpan(Of Byte))
Paramètres
- key
- ReadOnlySpan<Byte>
Nouvelle clé pour cette instance.
Exceptions
La taille de la clé n’est pas valide.
- ou -
Une erreur s’est produite lors de la définition de la clé.