ECDiffieHellmanCngPublicKey.ExportParameters Method

Definition

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

public:
 override System::Security::Cryptography::ECParameters ExportParameters();
public override System.Security.Cryptography.ECParameters ExportParameters ();
override this.ExportParameters : unit -> System.Security.Cryptography.ECParameters
Public Overrides Function ExportParameters () As ECParameters

Returns

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

Exceptions

The method cannot obtain curve values.

Remarks

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

Applies to