ECAlgorithm.TryExportECPrivateKeyPem(Span<Char>, Int32) Méthode
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.
Tente d’exporter la clé actuelle au format ECPrivateKey encodé en PEM dans une mémoire tampon fournie.
public:
bool TryExportECPrivateKeyPem(Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public bool TryExportECPrivateKeyPem(Span<char> destination, out int charsWritten);
member this.TryExportECPrivateKeyPem : Span<char> * int -> bool
Public Function TryExportECPrivateKeyPem (destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean
- charsWritten
- Int32
Lorsque cette méthode retourne, contient une valeur qui indique le nombre de caractères écrits dans destination
. Ce paramètre est traité comme étant non initialisé.
true
si destination
est suffisamment grand pour recevoir la sortie ; sinon, false
.
La clé n’a pas pu être exportée.
Une clé ECPrivateKey encodée pem commence par -----BEGIN EC PRIVATE KEY-----
et se termine par -----END EC PRIVATE KEY-----
, avec le contenu DER encodé en base64 de la clé entre les limites PEM.
The PEM is encoded according to the IETF RFC 7468 "strict"
encoding rules.
Produit | Versions |
---|---|
.NET | 7, 8, 9 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :