X509ExtensionEnumerator.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 X509ExtensionCollection.

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

public void Reset()

Exception Condition
InvalidOperationException

The collection was modified after the enumerator was created.

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

.NET Framework
Available since 2.0
Return to top
Show: