AsymmetricAlgorithm.ExportPkcs8PrivateKey 方法

定義

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

public:
 virtual cli::array <System::Byte> ^ ExportPkcs8PrivateKey();
public virtual byte[] ExportPkcs8PrivateKey();
abstract member ExportPkcs8PrivateKey : unit -> byte[]
override this.ExportPkcs8PrivateKey : unit -> byte[]
Public Overridable Function ExportPkcs8PrivateKey () As Byte()

傳回

Byte[]

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

例外狀況

該金鑰無法匯出。

適用於

另請參閱