AsnEncodedDataEnumerator.MoveNext Method ()


Advances to the next AsnEncodedData object in an AsnEncodedDataCollection object.

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

abstract MoveNext : unit -> bool
override MoveNext : unit -> bool

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

The collection was modified after the enumerator was created.

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

After the end of the collection is passed, calls to 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 MoveNext can throw an InvalidOperationException.

The following code example shows how to use the AsnEncodedDataEnumerator class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top