System.Security.Permissions.KeyContainerPermissionAccessEntryEnumerator.MoveNext Method

Moves to the next element in the collection.


public bool MoveNext ()


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


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

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

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


Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions:,
Since: .NET 2.0