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: 2.14.0
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
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Gets an enumerator for the collection of recipients.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove
Removes the specified recipient.
Public methodToString
Returns a string that represents the current object.
(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