<PackageReference Include="System.Security.Cryptography.Pkcs" Version="10.0.11" />

System.Security.Cryptography.Pkcs.CmsRecipientCollection

The CmsRecipientCollection class represents a set of CmsRecipient objects. CmsRecipientCollection implements the ICollection interface.
namespace System.Security.Cryptography.Pkcs { public sealed class CmsRecipientCollection : ICollection, IEnumerable { public CmsRecipient this[int index] { get; } public int Count { get; } public bool IsSynchronized { get; } public object SyncRoot { get; } public CmsRecipientCollection(); public CmsRecipientCollection(CmsRecipient recipient); public CmsRecipientCollection(SubjectIdentifierType recipientIdentifierType, X509Certificate2Collection certificates); public int Add(CmsRecipient recipient); public void Remove(CmsRecipient recipient); public CmsRecipientEnumerator GetEnumerator(); public void CopyTo(Array array, int index); public void CopyTo(CmsRecipient[] array, int index); } }