AsymmetricAlgorithm.ExportSubjectPublicKeyInfo Method

Definition

Exports the public-key portion of 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 the public-key portion of this key.

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1

See also