共用方式為


Pkcs8PrivateKeyInfo.Create(AsymmetricAlgorithm) 方法

定義

匯出指定的金鑰為 PKCS#8 PrivateKeyInfo 並傳回其解碼解譯。

public:
 static System::Security::Cryptography::Pkcs::Pkcs8PrivateKeyInfo ^ Create(System::Security::Cryptography::AsymmetricAlgorithm ^ privateKey);
public static System.Security.Cryptography.Pkcs.Pkcs8PrivateKeyInfo Create (System.Security.Cryptography.AsymmetricAlgorithm privateKey);
static member Create : System.Security.Cryptography.AsymmetricAlgorithm -> System.Security.Cryptography.Pkcs.Pkcs8PrivateKeyInfo
Public Shared Function Create (privateKey As AsymmetricAlgorithm) As Pkcs8PrivateKeyInfo

參數

privateKey
AsymmetricAlgorithm

PKCS#8 PrivateKeyInfo 中要代表的私密金鑰。

傳回

匯出之 PKCS#8 PrivateKeyInfo 的解碼解譯。

例外狀況

privateKey 參數為 null

適用於

另請參閱