Redigeeri

Jagamisviis:


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
CmsRecipientCollection
Implements

Constructors

CmsRecipientCollection()

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

CmsRecipientCollection(CmsRecipient)

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

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

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

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]

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

SyncRoot

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

Methods

Add(CmsRecipient)

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

CopyTo(Array, Int32)

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

CopyTo(CmsRecipient[], Int32)

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

Equals(Object)

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

(Inherited from Object)
GetEnumerator()

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

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(CmsRecipient)

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

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.IsSynchronized

Gets a value indicating whether access to the ICollection is synchronized (thread safe).

ICollection.SyncRoot

Gets an object that can be used to synchronize access to the ICollection.

IEnumerable.GetEnumerator()

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

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to