X509CertificateCollection.X509CertificateEnumerator.Reset Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Sets the enumerator to its initial position, which is before the first element in the collection.

Namespace:   System.Security.Cryptography.X509Certificates
Assembly:  System (in System.dll)

public void Reset()

Exception Condition
InvalidOperationException

The collection is modified after the enumerator is instantiated.

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 the MoveNext or Reset method throws an InvalidOperationException.

.NET Framework
Available since 1.1
Return to top
Show: