RSA.TryExportRSAPublicKeyPem(Span<Char>, Int32) 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.
Tente d’exporter la clé actuelle dans le format RSAPublicKey encodé en PEM au format PKCS#1 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
Paramètres
Étendue de caractères pour recevoir les données RSAPublicKey encodées au format PEM PKCS#1.
- charsWritten
- Int32
Lorsque cette méthode est retournée, contient une valeur qui indique le nombre de caractères écrits dans destination. Ce paramètre est traité comme non initialisé.
Retours
true s’il destination est assez grand pour recevoir la sortie ; sinon, false.
Exceptions
Impossible d’exporter la clé.
Remarques
Un PKCS#1 RSAPublicKey encodé en PEM commence par -----BEGIN RSA PUBLIC KEY----- et se termine -----END RSA PUBLIC KEY-----par , avec le contenu DER codé en base64 de la clé entre les limites PEM.
The PEM is encoded according to the IETF RFC 7468 "strict"
encoding rules.