CmsRecipientCollection 类

定义

CmsRecipientCollection 类表示一组 CmsRecipient 对象。 CmsRecipientCollection ICollection实现接口。

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 实例。

CmsRecipientCollection(CmsRecipient)

构造 CmsRecipientCollection(CmsRecipient) 函数创建类的 CmsRecipientCollection 实例,并添加指定的收件人。

CmsRecipientCollection(SubjectIdentifierType, X509Certificate2Collection)

构造 CmsRecipientCollection(SubjectIdentifierType, X509Certificate2Collection) 函数创建类的 CmsRecipientCollection 实例,并基于指定的使用者标识符和标识收件人的证书集添加收件人。

属性

名称 说明
Count

Count 属性检索集合中的 CmsRecipientCollection 项数。

IsSynchronized

IsSynchronized 属性检索对集合的访问是同步还是线程安全。 此属性始终返回 false,这意味着集合不是线程安全的。

Item[Int32]

Item[Int32] 属性检索 CmsRecipient 集合中指定索引处的对象。

SyncRoot

SyncRoot 属性检索用于 Object 同步对 CmsRecipientCollection 集合的访问的对象。

方法

名称 说明
Add(CmsRecipient)

该方法 Add(CmsRecipient) 将收件人添加到 CmsRecipientCollection 集合。

CopyTo(Array, Int32)

该方法 CopyTo(Array, Int32)CmsRecipientCollection 集合复制到数组。

CopyTo(CmsRecipient[], Int32)

该方法 CopyTo(CmsRecipient[], Int32)CmsRecipientCollection 集合复制到 CmsRecipient 数组。

Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetEnumerator()

该方法 GetEnumerator() 返回 CmsRecipientEnumerator 集合的对象 CmsRecipientCollection

GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
Remove(CmsRecipient)

该方法 Remove(CmsRecipient)CmsRecipientCollection 集合中删除收件人。

ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

显式接口实现

名称 说明
ICollection.IsSynchronized

获取一个值,该值指示对 ICollection 同步的访问是否同步(线程安全)。

ICollection.SyncRoot

获取可用于同步对 . ICollection的访问的对象。

IEnumerable.GetEnumerator()

该方法 IEnumerable.GetEnumerator() 返回 CmsRecipientEnumerator 集合的对象 CmsRecipientCollection

扩展方法

名称 说明
AsParallel(IEnumerable)

启用查询的并行化。

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryable

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定类型。

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。

适用于