System.Security.Permissions.KeyContainerPermissionAccessEntryEnumerator.MoveNext Method

Moves to the next element in the collection.

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

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.

Requirements

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