RSA.TryExportRSAPublicKey(Span<Byte>, Int32) Metod

Definition

Försöker exportera den aktuella nyckeln i RSAPublicKey-formatet PKCS#1 till en angivet buffert.

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

Parametrar

destination
Span<Byte>

Byteintervallet för att ta emot PKCS#1 RSAPublicKey-data.

bytesWritten
Int32

När den här metoden returnerar innehåller ett värde som anger antalet byte som skrivits till destination. Den här parametern behandlas som oinitierad.

Returer

trueom destination är tillräckligt stor för att ta emot utdata, annars . false

Undantag

Det gick inte att exportera nyckeln.

Gäller för

Se även