CmsRecipientCollection Class

 

The CmsRecipientCollection class represents a set of CmsRecipient objects. CmsRecipientCollection implements the ICollection interface.

Namespace:   System.Security.Cryptography.Pkcs
Assembly:  System.Security (in System.Security.dll)

System.Object
  System.Security.Cryptography.Pkcs.CmsRecipientCollection

[HostProtectionAttribute(SecurityAction.LinkDemand, MayLeakOnAbort = true)]
public sealed class CmsRecipientCollection : ICollection, IEnumerable

NameDescription
System_CAPS_pubmethodCmsRecipientCollection()

The CmsRecipientCollection constructor creates an instance of the CmsRecipientCollection class.

System_CAPS_pubmethodCmsRecipientCollection(CmsRecipient)

The CmsRecipientCollection constructor creates an instance of the CmsRecipientCollection class and adds the specified recipient.

System_CAPS_pubmethodCmsRecipientCollection(SubjectIdentifierType, X509Certificate2Collection)

The CmsRecipientCollection 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.

NameDescription
System_CAPS_pubpropertyCount

The Count property retrieves the number of items in the CmsRecipientCollection collection.

System_CAPS_pubpropertyIsSynchronized

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.

System_CAPS_pubpropertyItem[Int32]

The Item property retrieves the CmsRecipient object at the specified index in the collection.

System_CAPS_pubpropertySyncRoot

The SyncRoot property retrieves an Object object used to synchronize access to the CmsRecipientCollection collection.

NameDescription
System_CAPS_pubmethodAdd(CmsRecipient)

The Add method adds a recipient to the CmsRecipientCollection collection.

System_CAPS_pubmethodCopyTo(Array, Int32)

The CopyTo method copies the CmsRecipientCollection collection to an array.

System_CAPS_pubmethodCopyTo(CmsRecipient[], Int32)

The CopyTo method copies the CmsRecipientCollection collection to a CmsRecipient array.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

The GetEnumerator method returns a CmsRecipientEnumerator object for the CmsRecipientCollection collection.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodRemove(CmsRecipient)

The Remove method removes a recipient from the CmsRecipientCollection collection.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

The IEnumerable.GetEnumerator method returns a CmsRecipientEnumerator object for the CmsRecipientCollection collection.

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: