System.Security.Cryptography.Pkcs.CmsRecipientCollection.Add Method

The CmsRecipientCollection.Add(CmsRecipient) method adds a recipient to the System.Security.Cryptography.Pkcs.CmsRecipientCollection collection.

Syntax

public int Add (CmsRecipient recipient)

Parameters

recipient
A System.Security.Cryptography.Pkcs.CmsRecipient object that represents the recipient to add to the System.Security.Cryptography.Pkcs.CmsRecipientCollection collection.

Returns

If the method succeeds, the method returns an int value that represents the zero-based position where the recipient is to be inserted.

If the method fails, it throws an exception.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Security.Cryptography.Pkcs
Assembly: System.Security (in System.Security.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0