Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ECDsaCng::ImportParameters Method (ECParameters)

 

Replaces the existing key that the current instance is working with by creating a new CngKey for the parameters structure.

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

public:
virtual void ImportParameters(
	ECParameters parameters
) override

Parameters

parameters
Type: System.Security.Cryptography::ECParameters

The curve parameters.

Exception Condition
CryptographicException

parameters does not contain valid values.

NotSupportedException

parameters references a curve that cannot be imported.

PlatformNotSupportedException

parameters references a curve that is not supported by this platform.

If parameters contains only Q, only a public key is imported. If parameters also contains D, a full key pair is imported. The Curve field specifies the type of the curve to import.

.NET Framework
Available since 4.7
Return to top
Show:
© 2017 Microsoft