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

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

Syntax

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

Parameters

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

Return Value

A new PgpPublicKeyRingBundle merging the current one with the passed in key ring.

Exceptions

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

See Also