X509CertificateCollection.X509CertificateEnumerator 类

定义

枚举 X509CertificateCollection 中的 X509Certificate 对象。

public: ref class X509CertificateCollection::X509CertificateEnumerator : System::Collections::IEnumerator
public class X509CertificateCollection.X509CertificateEnumerator : System.Collections.IEnumerator
type X509CertificateCollection.X509CertificateEnumerator = class
    interface IEnumerator
Public Class X509CertificateCollection.X509CertificateEnumerator
Implements IEnumerator
继承
X509CertificateCollection.X509CertificateEnumerator
实现

注解

枚举器提供对集合中数据的只读访问权限。 枚举器不能用于修改基础集合。

最初,枚举数定位在集合中第一个元素的前面。 方法 Reset 还会将枚举器带回此位置。 在此位置,调用 Current 属性将引发异常。 因此,在读取 的值Current之前,必须调用 MoveNext 方法以将枚举器推进到集合的第一个元素。

此类继承自 IEnumerator 接口。 有关枚举集合的详细信息,请参阅 IEnumerator

构造函数

X509CertificateCollection.X509CertificateEnumerator(X509CertificateCollection)

为指定的 X509CertificateCollection 初始化 X509CertificateCollection.X509CertificateEnumerator 类的新实例。

属性

Current

获取 X509Certificate 中的当前 X509CertificateCollection

方法

Equals(Object)

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

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
MoveNext()

将枚举数推进到集合的下一个元素。

Reset()

将枚举数设置为其初始位置,该位置位于集合中第一个元素之前。

ToString()

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

(继承自 Object)

显式接口实现

IEnumerator.Current

有关此成员的说明,请参见 Current

IEnumerator.MoveNext()

有关此成员的说明,请参见 MoveNext()

IEnumerator.Reset()

有关此成员的说明,请参见 Reset()

适用于