X509Certificate2Enumerator 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
支持对 X509Certificate2Collection 对象执行简单迭代。 此类不能被继承。
public ref class X509Certificate2Enumerator sealed : System::Collections::Generic::IEnumerator<System::Security::Cryptography::X509Certificates::X509Certificate2 ^>
	public ref class X509Certificate2Enumerator sealed : System::Collections::IEnumerator
	public sealed class X509Certificate2Enumerator : System.Collections.Generic.IEnumerator<System.Security.Cryptography.X509Certificates.X509Certificate2>
	public sealed class X509Certificate2Enumerator : System.Collections.IEnumerator
	type X509Certificate2Enumerator = class
    interface IEnumerator<X509Certificate2>
    interface IEnumerator
    interface IDisposable
	type X509Certificate2Enumerator = class
    interface IEnumerator
	Public NotInheritable Class X509Certificate2Enumerator
Implements IEnumerator(Of X509Certificate2)
	Public NotInheritable Class X509Certificate2Enumerator
Implements IEnumerator
		- 继承
 - 
				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()。  |