System.Security.Cryptography.Pkcs.CmsRecipientCollection
The CmsRecipientCollection class represents a set of CmsRecipient objects. CmsRecipientCollection implements the ICollection interface.
The Count property retrieves the number of items in the CmsRecipientCollection collection.
The IsSynchronized property retrieves whether access to the collection is synchronized, or thread safe. This property always returns false, which means that the collection is not thread safe.
The Item property retrieves the CmsRecipient object at the specified index in the collection.
The SyncRoot property retrieves an Object object used to synchronize access to the CmsRecipientCollection collection.
public CmsRecipientCollection()
The #ctor constructor creates an instance of the CmsRecipientCollection class.
The #ctor constructor creates an instance of the CmsRecipientCollection class and adds the specified recipient.
public CmsRecipientCollection(SubjectIdentifierType recipientIdentifierType, X509Certificate2Collection certificates)
The #ctor constructor creates an instance of the CmsRecipientCollection class and adds recipients based on the specified subject identifier and set of certificates that identify the recipients.
The Add method adds a recipient to the CmsRecipientCollection collection.
The CopyTo method copies the CmsRecipientCollection collection to an array.
The GetEnumerator method returns a CmsRecipientEnumerator object for the CmsRecipientCollection collection.
The Remove method removes a recipient from the CmsRecipientCollection collection.