If for whatever reason the method
fails to complete, the method will return some text stating exactly
what has gone wrong.
The only properties of the control
that you need to specify are the PublicKey
properties of the
control and the KeyFolder where the key
ring resides.
You can specify either a key as a
string (example below) or a valid .asc file that contains a
valid key to add to a keyring. When specifying a .asc file you just
set the PublicKey
property to the filename for example:
Cryptocx.PublicKey = "c:\somekey.asc"
The PGPAddKeyToKeyRing method will
automatically search through the specified folder (KeyFolder
property) for valid keyring
files.
The first valid keyring file that is found in the specified folder will
be used and the key will be added to that keyring file.
If the key that you are trying to
add is already in the key ring then the key will not be added to the
public keyring again.
|