PublicKey.GetECDiffieHellmanPublicKey 方法

定义

ECDiffieHellman获取公钥;null如果密钥不是 ECDiffieHellman 密钥,则获取该密钥。

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

返回

公钥,或者 null 如果密钥不是 ECDiffieHellman 密钥,则为 。

属性

例外

密钥内容已损坏或无法成功读取。

适用于