ECDiffieHellman::ExportParameters Method (Boolean)
When overridden in a derived class, exports either the public or the public and private key information from a working ECDiffieHellman key to an ECParameters structure so that it can be passed to the ECDiffieHellman::ImportParameters method.
Assembly: System.Core (in System.Core.dll)
Parameters
- includePrivateParameters
-
Type:
System::Boolean
true to include private parameters; otehrwise, false to include public parameters only.
Return Value
Type: System.Security.Cryptography::ECParametersAn object that represents the point on the curve for this key. It can be passed to the ECDiffieHellman::ImportParameters method.
| Exception | Condition |
|---|---|
| NotImplementedException | A derived class must override this method. |
If the curve has a name, the Curve property contains named curve parameters; otherwise, it will contain explicit parameters.
Available since 4.7