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

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

属性

Current

获取 X509Certificate2Collection 对象中的当前元素。

方法

Equals(Object)

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

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
MoveNext()

将枚举数前移到 X509Certificate2Collection 对象中的下一个元素。

Reset()

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

ToString()

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

(继承自 Object)

显式接口实现

IDisposable.Dispose()

执行与释放或重置非托管资源关联的应用程序定义的任务。

IEnumerator.Current

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

IEnumerator.MoveNext()

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

IEnumerator.Reset()

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

适用于