The CmsRecipientCollection.Add(CmsRecipient) method adds a recipient to the System.Security.Cryptography.Pkcs.CmsRecipientCollection collection.
- recipient
A System.Security.Cryptography.Pkcs.CmsRecipient object that represents the recipient to add to the System.Security.Cryptography.Pkcs.CmsRecipientCollection collection.
![]()
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.