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