CmsRecipientCollection 类

定义

CmsRecipientCollection 类表示 CmsRecipient 对象的集合。The CmsRecipientCollection class represents a set of CmsRecipient objects. CmsRecipientCollection 实现 ICollection 接口。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
继承
CmsRecipientCollection
实现

构造函数

CmsRecipientCollection()

CmsRecipientCollection() 构造函数创建 CmsRecipientCollection 类的实例。The CmsRecipientCollection() constructor creates an instance of the CmsRecipientCollection class.

CmsRecipientCollection(CmsRecipient)

CmsRecipientCollection(CmsRecipient) 构造函数创建 CmsRecipientCollection 类的实例并添加指定的收件人。The CmsRecipientCollection(CmsRecipient) constructor creates an instance of the CmsRecipientCollection class and adds the specified recipient.

CmsRecipientCollection(SubjectIdentifierType, X509Certificate2Collection)

CmsRecipientCollection(SubjectIdentifierType, X509Certificate2Collection) 构造函数创建 CmsRecipientCollection 类的实例并根据指定的主题标识符和标识收件人的证书集添加收件人。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.

属性

Count

Count 属性检索 CmsRecipientCollection 集合中的项数。The Count property retrieves the number of items in the CmsRecipientCollection collection.

IsSynchronized

IsSynchronized 属性检索对集合的访问是否为同步的,即线程安全的。The IsSynchronized property retrieves whether access to the collection is synchronized, or thread safe. 此属性始终返回 false,表示集合不是线程安全的。This property always returns false, which means that the collection is not thread safe.

Item[Int32]

Item[Int32] 属性检索集合中指定索引处的 CmsRecipient 对象。The Item[Int32] property retrieves the CmsRecipient object at the specified index in the collection.

SyncRoot

SyncRoot 属性检索用于同步访问 Object 集合的 CmsRecipientCollection 对象。The SyncRoot property retrieves an Object object used to synchronize access to the CmsRecipientCollection collection.

方法

Add(CmsRecipient)

Add(CmsRecipient) 方法向 CmsRecipientCollection 集合中添加收件人。The Add(CmsRecipient) method adds a recipient to the CmsRecipientCollection collection.

CopyTo(Array, Int32)

CopyTo(Array, Int32) 方法将 CmsRecipientCollection 集合复制到一个数组中。The CopyTo(Array, Int32) method copies the CmsRecipientCollection collection to an array.

CopyTo(CmsRecipient[], Int32)

CopyTo(CmsRecipient[], Int32) 方法将 CmsRecipientCollection 集合复制到 CmsRecipient 数组中。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.

(继承自 Object)
GetEnumerator()

GetEnumerator() 方法为 CmsRecipientEnumerator 集合返回一个 CmsRecipientCollection 对象。The GetEnumerator() method returns a CmsRecipientEnumerator object for the CmsRecipientCollection collection.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Remove(CmsRecipient)

Remove(CmsRecipient) 方法将收件人从 CmsRecipientCollection 集合中移除。The Remove(CmsRecipient) method removes a recipient from the CmsRecipientCollection collection.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

显式界面实现

ICollection.IsSynchronized
ICollection.SyncRoot
IEnumerable.GetEnumerator()

IEnumerable.GetEnumerator() 方法为 CmsRecipientEnumerator 集合返回一个 CmsRecipientCollection 对象。The IEnumerable.GetEnumerator() method returns a CmsRecipientEnumerator object for the CmsRecipientCollection collection.

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于