語言

MLDsa.ExportPkcs8PrivateKey 方法

定義

匯出目前的金鑰,格式為 PKCS#8 PrivateKeyInfo。

public:
 cli::array <System::Byte> ^ ExportPkcs8PrivateKey();
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public byte[] ExportPkcs8PrivateKey();
public byte[] ExportPkcs8PrivateKey();
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.ExportPkcs8PrivateKey : unit -> byte[]
member this.ExportPkcs8PrivateKey : unit -> byte[]
Public Function ExportPkcs8PrivateKey () As Byte()

傳回

Byte[]

一個位元組陣列,包含此金鑰的 PKCS#8 PrivateKeyInfo 表示。

屬性

例外狀況

這個實例已經被處理掉了。

此實例僅代表公鑰。

-或-

私鑰無法匯出。

-或-

匯出金鑰時發生錯誤。

適用於