X509Certificate2Enumerator::MoveNext Method ()

 

Advances the enumerator to the next element in the X509Certificate2Collection object.

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

public:
bool MoveNext()

Return Value

Type: System::Boolean

true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

Exception Condition
InvalidOperationException

The collection was modified after the enumerator was created.

This method advances the enumerator to the next element in the collection. For more information about enumerating over a collection, see the IEnumerator topic.

.NET Framework
Available since 2.0
Return to top
Show: