X509Certificate2.GetECDiffieHellmanPrivateKey 方法

定义

ECDiffieHellman从此证书获取私钥。

public:
 System::Security::Cryptography::ECDiffieHellman ^ GetECDiffieHellmanPrivateKey();
public System.Security.Cryptography.ECDiffieHellman? GetECDiffieHellmanPrivateKey ();
member this.GetECDiffieHellmanPrivateKey : unit -> System.Security.Cryptography.ECDiffieHellman
Public Function GetECDiffieHellmanPrivateKey () As ECDiffieHellman

返回

私钥; null 如果此证书没有 ECDiffieHellman 私钥,则为 。

例外

该句柄无效。

适用于