System.Security.Cryptography.X509Certificates.X509ExtensionEnumerator Class

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

See Also: X509ExtensionEnumerator Members

Syntax

public sealed class X509ExtensionEnumerator : IEnumerator

Remarks

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

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

This class inherits from the IEnumerator interface. For more information about enumerating over a collection, see the IEnumerator topic.

Requirements

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