通过


X509CertificateCollection.X509CertificateEnumerator 类

定义

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 属性将引发异常。 因此,在读取值MoveNext之前,必须调用Current该方法以将枚举器提升到集合的第一个元素。

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

构造函数

名称 说明
X509CertificateCollection.X509CertificateEnumerator(X509CertificateCollection)

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

属性

名称 说明
Current

获取 . 中的当前 X509CertificateX509CertificateCollection

方法

名称 说明
Equals(Object)

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

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
MoveNext()

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

Reset()

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

ToString()

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

(继承自 Object)

显式接口实现

名称 说明
IEnumerator.Current

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

IEnumerator.MoveNext()

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

IEnumerator.Reset()

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

适用于