CmsRecipientCollection CmsRecipientCollection CmsRecipientCollection CmsRecipientCollection Class

Definition

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

public ref class CmsRecipientCollection sealed : System::Collections::ICollection
public sealed class CmsRecipientCollection : System.Collections.ICollection
type CmsRecipientCollection = class
    interface ICollection
    interface IEnumerable
Public NotInheritable Class CmsRecipientCollection
Implements ICollection
Inheritance
CmsRecipientCollectionCmsRecipientCollectionCmsRecipientCollectionCmsRecipientCollection
Implements

Constructors

CmsRecipientCollection() CmsRecipientCollection() CmsRecipientCollection() CmsRecipientCollection()

The CmsRecipientCollection() constructor creates an instance of the CmsRecipientCollection class.

CmsRecipientCollection(CmsRecipient) CmsRecipientCollection(CmsRecipient) CmsRecipientCollection(CmsRecipient) CmsRecipientCollection(CmsRecipient)

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

CmsRecipientCollection(SubjectIdentifierType, X509Certificate2Collection) CmsRecipientCollection(SubjectIdentifierType, X509Certificate2Collection) CmsRecipientCollection(SubjectIdentifierType, X509Certificate2Collection) CmsRecipientCollection(SubjectIdentifierType, X509Certificate2Collection)

The CmsRecipientCollection(SubjectIdentifierType, X509Certificate2Collection) 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.

Properties

Count Count Count Count

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

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

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.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

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

SyncRoot SyncRoot SyncRoot SyncRoot

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

Methods

Add(CmsRecipient) Add(CmsRecipient) Add(CmsRecipient) Add(CmsRecipient)

The Add(CmsRecipient) method adds a recipient to the CmsRecipientCollection collection.

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

The CopyTo(Array, Int32) method copies the CmsRecipientCollection collection to an array.

CopyTo(CmsRecipient[], Int32) CopyTo(CmsRecipient[], Int32) CopyTo(CmsRecipient[], Int32) CopyTo(CmsRecipient[], Int32)

The CopyTo(CmsRecipient[], Int32) method copies the CmsRecipientCollection collection to a CmsRecipient array.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

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

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(CmsRecipient) Remove(CmsRecipient) Remove(CmsRecipient) Remove(CmsRecipient)

The Remove(CmsRecipient) method removes a recipient from the CmsRecipientCollection collection.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized
ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot
IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

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

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to