ECDsaCng.ExportParameters(Boolean) Method

Definition

Exports the key used by the Elliptic curve cryptography (ECC) object into an ECParameters object. If the key was created as a named curve, the Curve field contains named curve parameters; otherwise, it contains explicit parameters.

C#
public override System.Security.Cryptography.ECParameters ExportParameters(bool includePrivateParameters);

Parameters

includePrivateParameters
Boolean

true to include private parameters; otherwise, false.

Returns

The key and named curve parameters used by the ECC object.

Exceptions

An error occurred while obtaining the curve values.

Applies to

Toode Versioonid
.NET Core 1.0, Core 1.1, 6, 7, 8, 9, 10
.NET Framework 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5