System.Security.Cryptography.AsnEncodedDataEnumerator.MoveNext Method

Advances to the next System.Security.Cryptography.AsnEncodedData object in an System.Security.Cryptography.AsnEncodedDataCollection object.

Syntax

public bool MoveNext ()

Returns

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

Remarks

After an enumerator is created, it is positioned before the first element of the collection, and the first call to the AsnEncodedDataEnumerator.MoveNext method moves the enumerator over the first element of the collection. Subsequent calls to AsnEncodedDataEnumerator.MoveNext advance the enumerator past subsequent elements.

After the end of the collection is passed, calls to AsnEncodedDataEnumerator.MoveNext return false.

An enumerator is valid as long as the collection remains unchanged. If changes are made to the collection, such as adding, modifying, or deleting elements, the enumerator becomes invalid and the next call to AsnEncodedDataEnumerator.MoveNext can throw an InvalidOperationException.

Requirements

Namespace: System.Security.Cryptography
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0