Returns a new key ring with the public key passed in removed from the key ring.

Namespace: Org.BouncyCastle.Bcpg.OpenPgp
Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0

Syntax

C#
public static PgpPublicKeyRing RemovePublicKey(
	PgpPublicKeyRing pubRing,
	PgpPublicKey pubKey
)
Visual Basic
Public Shared Function RemovePublicKey ( _
	pubRing As PgpPublicKeyRing, _
	pubKey As PgpPublicKey _
) As PgpPublicKeyRing
Visual C++
public:
static PgpPublicKeyRing^ RemovePublicKey(
	PgpPublicKeyRing^ pubRing, 
	PgpPublicKey^ pubKey
)

Parameters

pubRing
Type: Org.BouncyCastle.Bcpg.OpenPgp..::..PgpPublicKeyRing
The public key ring to be modified.
pubKey
Type: Org.BouncyCastle.Bcpg.OpenPgp..::..PgpPublicKey
The public key to be removed.

Return Value

A new PgpPublicKeyRing, or null if pubKey is not found.

See Also