RSA.ExportRSAPublicKey Method

Definition

Exports the public-key portion of the current key in the PKCS#1 RSAPublicKey format.

public:
 virtual cli::array <System::Byte> ^ ExportRSAPublicKey();
public virtual byte[] ExportRSAPublicKey ();
abstract member ExportRSAPublicKey : unit -> byte[]
override this.ExportRSAPublicKey : unit -> byte[]
Public Overridable Function ExportRSAPublicKey () As Byte()

Returns

Byte[]

A byte array containing the PKCS#1 RSAPublicKey representation of this key.

Applies to

See also

  • <xref:System.Security.Cryptography.AsymmetricAlgorithm.ExportSubjectPublicKeyInfo()>
  • <xref:System.Security.Cryptography.RSA.ExportRSAPrivateKey()>
  • TryExportRSAPublicKey