Exports private key from this OpenPGP key store into a file.
Namespace:
DidiSoftAssembly: PGPLib (in PGPLib.dll) Version: 1.6.3.19546
Syntax
| C# |
|---|
public virtual void ExportPrivateKey( string fileName, long keyId, bool asciiArmored ) |
| Visual Basic (Declaration) |
|---|
Public Overridable Sub ExportPrivateKey ( _ fileName As String, _ keyId As Long, _ asciiArmored As Boolean _ ) |
| Visual C++ |
|---|
public: virtual void ExportPrivateKey( String^ fileName, long long keyId, bool asciiArmored ) |
Parameters
- fileName
- Type: System..::.String
File name where the key will be exported (absolute or relative path)
- keyId
- Type: System..::.Int64
Key Id of the corresponding Public Key
- asciiArmored
- Type: System..::.Boolean
If true, output is in ASCII armored format
Remarks
Exports private key from this OpenPGP key store into a file.
Exceptions
| Exception | Condition |
|---|---|
| PgpException | If there is no such key |
| System.IO..::.IOException | If file writing error occur |