RSA.TryExportRSAPublicKey(Span<Byte>, Int32) 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
嘗試以 PKCS#1 RSAPublicKey 格式將目前金鑰匯出至提供的緩衝區。
public:
virtual bool TryExportRSAPublicKey(Span<System::Byte> destination, [Runtime::InteropServices::Out] int % bytesWritten);
C#
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
當此方法傳回時,會包含一個值,指出寫入 destination
的位元組數。 這個參數會被視為未初始化。
若 destination
夠大可接收輸出,則為 true
;否則為 false
。
無法匯出金鑰。
產品 | 版本 |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.1 |