ECDiffieHellmanCng.ExportParameters Method (Boolean)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

Parameters

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
CryptographicException

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
Show: