System.Security.Cryptography.X509Certificates.X509ChainElementEnumerator.Reset Method

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

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 X509ChainElementEnumerator.MoveNext or X509ChainElementEnumerator.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