Return a new bundle containing the contents of the passed in bundle with the passed in public key ring removed.

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

Syntax

C#
public static PgpPublicKeyRingBundle RemovePublicKeyRing(
	PgpPublicKeyRingBundle bundle,
	PgpPublicKeyRing publicKeyRing
)
Visual Basic
Public Shared Function RemovePublicKeyRing ( _
	bundle As PgpPublicKeyRingBundle, _
	publicKeyRing As PgpPublicKeyRing _
) As PgpPublicKeyRingBundle
Visual C++
public:
static PgpPublicKeyRingBundle^ RemovePublicKeyRing(
	PgpPublicKeyRingBundle^ bundle, 
	PgpPublicKeyRing^ publicKeyRing
)

Parameters

bundle
Type: Org.BouncyCastle.Bcpg.OpenPgp..::..PgpPublicKeyRingBundle
The PgpPublicKeyRingBundle the key ring is to be removed from.
publicKeyRing
Type: Org.BouncyCastle.Bcpg.OpenPgp..::..PgpPublicKeyRing
The key ring to be removed.

Return Value

A new PgpPublicKeyRingBundle not containing the passed in key ring.

Exceptions

ExceptionCondition
System..::..ArgumentExceptionIf the keyId for the passed in key ring is not present.

See Also