System.Security.Cryptography.X509Certificates.X509ExtensionEnumerator.Reset Method

Sets the enumerator to its initial position, which is before the first element in the System.Security.Cryptography.X509Certificates.X509ExtensionCollection.

Syntax

public void Reset ()

Remarks

An enumerator remains valid as long as the collection remains unchanged. If changes are made to the collection, such as adding, modifying or deleting elements, the enumerator is irrecoverably invalidated and the next call to X509ExtensionEnumerator.MoveNext or X509ExtensionEnumerator.Reset throws an InvalidOperationException.

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