Exports private key from this OpenPGP key store as a String in ASCII armored format.
Namespace: DidiSoft.PgpAssembly: DidiSoft.Pgp (in DidiSoft.Pgp.dll) Version: 1.7.3.35547
Syntax
| C# |
|---|
public virtual string ExportPrivateKeyAsString( long keyId ) |
| Visual Basic |
|---|
Public Overridable Function ExportPrivateKeyAsString ( _ keyId As Long _ ) As String |
| Visual C++ |
|---|
public: virtual String^ ExportPrivateKeyAsString( long long keyId ) |
Parameters
- keyId
- Type: System..::..Int64
Key Id of the corresponding Public Key
Return Value
requested Private key in ASCII armored format
Exceptions
| Exception | Condition |
|---|---|
| DidiSoft.Pgp.Exceptions..::..WrongPrivateKeyException | If there is no private key in this key pair |
| System.IO..::..IOException | if an I/O error occurs. |