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 物件。

擴充方法

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。

AsParallel(IEnumerable)

啟用查詢的平行化作業。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

適用於