This documentation is archived and is not being maintained.

KeyContainerPermissionAccessEntryEnumerator.MoveNext Method

Moves to the next element in the collection.

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)

public bool MoveNext ()
public final boolean MoveNext ()
public final function MoveNext () : boolean
Not applicable.

Return Value

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: