Click or drag to resize
MimeKit

CmsRecipientCollection Class

A collection of CmsRecipient objects.
Inheritance Hierarchy
SystemObject
  MimeKit.CryptographyCmsRecipientCollection

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public class CmsRecipientCollection : ICollection<CmsRecipient>, 
	IEnumerable<CmsRecipient>, IEnumerable

The CmsRecipientCollection type exposes the following members.

Constructors
 NameDescription
Public methodCmsRecipientCollection Initialize a new instance of the CmsRecipientCollection class.
Top
Properties
 NameDescription
Public propertyCount Gets the number of recipients in the collection.
Public propertyIsReadOnly Get a value indicating whether the CmsRecipientCollection is read only.
Top
Methods
 NameDescription
Public methodAdd Adds the specified recipient.
Public methodClear Clears the recipient collection.
Public methodContains Checks if the collection contains the specified recipient.
Public methodCopyTo Copies all of the recipients in the CmsRecipientCollection to the specified array.
Public methodEquals
(Inherited from Object)
Protected methodFinalize
(Inherited from Object)
Public methodGetEnumerator Gets an enumerator for the collection of recipients.
Public methodGetHashCode
(Inherited from Object)
Public methodGetType
(Inherited from Object)
Protected methodMemberwiseClone
(Inherited from Object)
Public methodRemove Removes the specified recipient.
Public methodToString
(Inherited from Object)
Top
Remarks
If the X.509 certificates are known for each of the recipients, you may wish to use a CmsRecipientCollection as opposed to using the methods that take a list of MailboxAddress objects.
See Also