X509Certificate2Enumerator 類別

定義

支援簡單反覆處理 X509Certificate2Collection。 此類別無法獲得繼承。

public ref class X509Certificate2Enumerator sealed : System::Collections::IEnumerator
public ref class X509Certificate2Enumerator sealed : System::Collections::Generic::IEnumerator<System::Security::Cryptography::X509Certificates::X509Certificate2 ^>
public sealed class X509Certificate2Enumerator : System.Collections.IEnumerator
public sealed class X509Certificate2Enumerator : System.Collections.Generic.IEnumerator<System.Security.Cryptography.X509Certificates.X509Certificate2>
type X509Certificate2Enumerator = class
    interface IEnumerator
type X509Certificate2Enumerator = class
    interface IEnumerator<X509Certificate2>
    interface IEnumerator
    interface IDisposable
Public NotInheritable Class X509Certificate2Enumerator
Implements IEnumerator
Public NotInheritable Class X509Certificate2Enumerator
Implements IEnumerator(Of X509Certificate2)
繼承
X509Certificate2Enumerator
實作

備註

列舉值提供集合中資料的唯讀存取權。 列舉值無法用來修改基礎集合。

一開始,列舉程式位在集合中的第一個項目之前。 方法 Reset 也會將列舉值帶回這個位置。 在這個位置,呼叫 Current 屬性會擲回例外狀況。 因此,您必須先呼叫 MoveNext 方法,將列舉值前移至集合的第一個專案,然後再讀取 的值 Current

這個類別繼承自 IEnumerator 介面。 如需列舉集合的詳細資訊,請參閱 IEnumerator

屬性

Current

取得 X509Certificate2Collection 物件中目前的項目。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
MoveNext()

將列舉值前移至 X509Certificate2Collection 物件中的下一個項目。

Reset()

將列舉值設定至其初始位置,也就是 X509Certificate2Collection 物件中的第一個項目之前。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

IDisposable.Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

IEnumerator.Current

如需這個成員的說明,請參閱 Current

IEnumerator.MoveNext()

如需這個成員的說明,請參閱 MoveNext()

IEnumerator.Reset()

如需這個成員的說明,請參閱 Reset()

適用於