System.Security.Cryptography.X509Certificates.X509ChainElementEnumerator Class

Supports a simple iteration over an System.Security.Cryptography.X509Certificates.X509ChainElementCollection. This class cannot be inherited.

See Also: X509ChainElementEnumerator Members


public sealed class X509ChainElementEnumerator : IEnumerator


Enumerators provide read-only access to the data in a collection. Enumerators cannot be used to modify the underlying collection.

Initially, the enumerator is positioned before the first element in the collection. X509ChainElementEnumerator.Reset resets the enumerator to this position. At this position, calling X509ChainElementEnumerator.Current throws an exception. Therefore, you must call X509ChainElementEnumerator.MoveNext to advance the enumerator to the first element of the collection before reading the value of X509ChainElementEnumerator.Current.

This class inherits from IEnumerator. See the class for more information about enumerating over a collection.


Namespace: System.Security.Cryptography.X509Certificates
Assembly: System (in System.dll)
Assembly Versions:,
Since: .NET 2.0