共用方式為


PublicKey.GetECDiffieHellmanPublicKey 方法

定義

ECDiffieHellman取得公鑰,如果金鑰不是 ECDiffieHellman 金鑰,則null為 。

public:
 System::Security::Cryptography::ECDiffieHellman ^ GetECDiffieHellmanPublicKey();
public System.Security.Cryptography.ECDiffieHellman? GetECDiffieHellmanPublicKey ();
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public System.Security.Cryptography.ECDiffieHellman? GetECDiffieHellmanPublicKey ();
member this.GetECDiffieHellmanPublicKey : unit -> System.Security.Cryptography.ECDiffieHellman
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.GetECDiffieHellmanPublicKey : unit -> System.Security.Cryptography.ECDiffieHellman
Public Function GetECDiffieHellmanPublicKey () As ECDiffieHellman

傳回

公鑰,如果金鑰不是 ECDiffieHellman 金鑰,則 null 為 。

屬性

例外狀況

金鑰內容已損毀或無法成功讀取。

適用於