Share via


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 私密金鑰,則為 。

例外狀況

控制代碼無效。

適用於