RSA.TryExportRSAPublicKey(Span<Byte>, 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 PKCS#1 RSAPublicKey dans une mémoire tampon fournie.
public:
virtual bool TryExportRSAPublicKey(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
public virtual bool TryExportRSAPublicKey(Span<byte> destination, out int bytesWritten);
abstract member TryExportRSAPublicKey : Span<byte> * int -> bool
override this.TryExportRSAPublicKey : Span<byte> * int -> bool
Public Overridable Function TryExportRSAPublicKey (destination As Span(Of Byte), ByRef bytesWritten As Integer) As Boolean
- bytesWritten
- Int32
Quand cette méthode est retournée, contient une valeur qui indique le nombre d’octets é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.
Produit | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.1 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :