Exports the private key part of this key pair as array of bytes.

Namespace: DidiSoft.Pgp
Assembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547

Syntax

C#
public byte[] ExportPrivateKeyBytes()
Visual Basic
Public Function ExportPrivateKeyBytes As Byte()
Visual C++
public:
array<unsigned char>^ ExportPrivateKeyBytes()

Return Value

[Missing <returns> documentation for "M:DidiSoft.Pgp.KeyPairInformation.ExportPrivateKeyBytes"]

Exceptions

ExceptionCondition
DidiSoft.Pgp.Exceptions..::..WrongPrivateKeyExceptionIf there is no private key in this key pair
System.IO..::..IOExceptionif an I/O error occurs.

See Also