RSA.TryExportRSAPublicKeyPem(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 dans le format RSAPublicKey PKCS#1 encodé en PEM dans une mémoire tampon fournie.
public:
bool TryExportRSAPublicKeyPem(Span<char> destination, [Runtime::InteropServices::Out] int % charsWritten);
public bool TryExportRSAPublicKeyPem(Span<char> destination, out int charsWritten);
member this.TryExportRSAPublicKeyPem : Span<char> * int -> bool
Public Function TryExportRSAPublicKeyPem (destination As Span(Of Char), ByRef charsWritten As Integer) As Boolean
Étendue de caractères pour recevoir les données RSAPublicKey PKCS#1 encodées pem.
- 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é PKCS#1 RSAPublicKey encodée pem commence par -----BEGIN RSA PUBLIC KEY-----
et se termine par -----END RSA PUBLIC 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, 10 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :