Return a new bundle containing the contents of the passed in bundle and
the passed in secret key ring.
Namespace: Org.BouncyCastle.Bcpg.OpenPgp
Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0
Syntax
C# |
---|
public static PgpSecretKeyRingBundle AddSecretKeyRing( PgpSecretKeyRingBundle bundle, PgpSecretKeyRing secretKeyRing ) |
Visual Basic |
---|
Public Shared Function AddSecretKeyRing ( _ bundle As PgpSecretKeyRingBundle, _ secretKeyRing As PgpSecretKeyRing _ ) As PgpSecretKeyRingBundle |
Visual C++ |
---|
public: static PgpSecretKeyRingBundle^ AddSecretKeyRing( PgpSecretKeyRingBundle^ bundle, PgpSecretKeyRing^ secretKeyRing ) |
Parameters
- bundle
- Type: Org.BouncyCastle.Bcpg.OpenPgp..::..PgpSecretKeyRingBundle
The PgpSecretKeyRingBundle the key ring is to be added to.
- secretKeyRing
- Type: Org.BouncyCastle.Bcpg.OpenPgp..::..PgpSecretKeyRing
The key ring to be added.
Return Value
A new PgpSecretKeyRingBundle merging the current one with the passed in key ring.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentException | If the keyId for the passed in key ring is already present. |