KeyContainerPermissionAccessEntryEnumerator.MoveNext Method ()

 

Moves to the next element in the collection.

Namespace:   System.Security.Permissions
Assembly:  mscorlib (in mscorlib.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.

The MoveNext method returns false immediately if there are no objects in the collection.

MoveNext returns true until it has reached the end of the collection. It then returns false for each successive call. However, once MoveNext has returned false, accessing the Current property throws an exception.

Upon creation, an enumerator is positioned before the first KeyContainerPermissionAccessEntry object in the collection, and the first call to MoveNext positions the enumerator to the first object in the collection.

.NET Framework
Available since 2.0
Return to top
Show: