Exports public key from this OpenPGP key store as an input stream for reading

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

Syntax

C#
public virtual Stream ExportPublicKeyStream(
	long keyId
)
Visual Basic
Public Overridable Function ExportPublicKeyStream ( _
	keyId As Long _
) As Stream
Visual C++
public:
virtual Stream^ ExportPublicKeyStream(
	long long keyId
)

Parameters

keyId
Type: System..::..Int64
Key Id of the public key

Return Value

requested Private key an input stream for reading

Exceptions

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

See Also