EasyByte Software

Welcome to EasyByte Software

Home Buy Online Products Downloads Support
ASP and dotNET
Further Information



PGPDeletePublicKey Method

Cryptocx v7 User Guide


PGPDeletePublicKey Method

This is the method that you use to delete a specified public key from a public keyring file.



Deletes a public key.


x = object.PGPDeletePublicKey

The syntax of the PGPDeletePublicKey method has these parts:

Part Description
object A Cryptocx v7 control.
x A string that becomes either "TRUE" or "Error: xxx" where xxx is the error message.

Remarks If for whatever reason the method fails to complete, the method will return some text stating exactly what has gone wrong, if the method runs ok then the output from the method will = "TRUE".

This method requires the use of a public key ring, you have to specify the directory in which the public key ring resides though the KeyFolder property. Cryptocx will automatically search through the public keyring in the specified directory to find the required key.

You need to specify the ID of the key to delete, the KeyID.



Example Sample Visual Basic Code to delete a public key from a public keyring file.

Where Cryptocx is an instance of a Cryptocx Control.

'' Delete the public Key

Dim theResult As String
Dim Cryptocx As New EasyByte_Software.Cryptocxv7

Cryptocx.LicenseKey = "DEMO"
Cryptocx.KeyID = "somekey"
Cryptocx.KeyFolder = "c:\mykeyfolder"

'' Delete the Key

theResult = Cryptocx.PGPDeletePublicKey

'' See if the key was deleted ok

If theResult = "TRUE" Then
  '' Ok, the key was deleted
  MsgBox theResult
End If





Back to Contents Page


Click here to set this great site as your home page

Or click here to add it to your Favorites.


Copyright (c) EasyByte Software 1998-2008, info@easybyte.com