Redigera

Dela via


X509Certificate2.GetECDiffieHellmanPrivateKey Method

Definition

Gets the ECDiffieHellman private key from this certificate.

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

Returns

The private key, or null if this certificate does not have an ECDiffieHellman private key.

Exceptions

The handle is invalid.

Applies to