ECDiffieHellmanCng.ExportParameters Method (Boolean)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Exports the key used by the ECCurve object into an ECParameters object.

Namespace:   System.Security.Cryptography
Assembly:  System.Core (in System.Core.dll)

public override ECParameters ExportParameters(
	bool includePrivateParameters


Type: System.Boolean

true to include private parameters; otherwise, false.

Return Value

Type: System.Security.Cryptography.ECParameters

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

Exception Condition

The method cannot obtain curve values.

If the key was created as a named curve, the ECParameters.Curve field contains named curve parameters; otherwise, it contains explicit parameters.

.NET Framework
Available since 4.7
Return to top