ECDiffieHellmanPublicKey.ExportSubjectPublicKeyInfo Method

Definition

Exports the current key in the X.509 SubjectPublicKeyInfo format.

C#
public virtual byte[] ExportSubjectPublicKeyInfo();

Returns

Byte[]

A byte array containing the X.509 SubjectPublicKeyInfo representation of this key.

Exceptions

The member ExportParameters() has not been overridden in a derived class.

The object has already been disposed.

The key is invalid and could not be exported.

Applies to

Toode Versioonid
.NET 6, 7, 8, 9, 10