ECDsa.ExportECPrivateKey Method

Definition

Exports the current key in the ECPrivateKey format.

C#
public virtual byte[] ExportECPrivateKey();

Returns

Byte[]

A byte array containing the ECPrivateKey representation of this key.

Exceptions

The key could not be exported.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6
.NET Standard 2.1

See also