Edit

Share via


MLDsa.ExportSubjectPublicKeyInfo Method

Definition

Exports the public-key portion of the current key in the X.509 SubjectPublicKeyInfo format.

public:
 cli::array <System::Byte> ^ ExportSubjectPublicKeyInfo();
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public byte[] ExportSubjectPublicKeyInfo();
public byte[] ExportSubjectPublicKeyInfo();
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5006", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.ExportSubjectPublicKeyInfo : unit -> byte[]
member this.ExportSubjectPublicKeyInfo : unit -> byte[]
Public Function ExportSubjectPublicKeyInfo () As Byte()

Returns

Byte[]

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

Attributes

Exceptions

This instance has been disposed.

An error occurred while exporting the key.

Applies to