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

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

Syntax

C#
public static PgpSecretKeyRingBundle RemoveSecretKeyRing(
	PgpSecretKeyRingBundle bundle,
	PgpSecretKeyRing secretKeyRing
)
Visual Basic
Public Shared Function RemoveSecretKeyRing ( _
	bundle As PgpSecretKeyRingBundle, _
	secretKeyRing As PgpSecretKeyRing _
) As PgpSecretKeyRingBundle
Visual C++
public:
static PgpSecretKeyRingBundle^ RemoveSecretKeyRing(
	PgpSecretKeyRingBundle^ bundle, 
	PgpSecretKeyRing^ secretKeyRing
)

Parameters

bundle
Type: Org.BouncyCastle.Bcpg.OpenPgp..::..PgpSecretKeyRingBundle
The PgpSecretKeyRingBundle the key ring is to be removed from.
secretKeyRing
Type: Org.BouncyCastle.Bcpg.OpenPgp..::..PgpSecretKeyRing
The key ring to be removed.

Return Value

A new PgpSecretKeyRingBundle not containing the passed in key ring.

Exceptions

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

See Also