This documentation is archived and is not being maintained.

KeyContainerPermissionAccessEntryEnumerator.Current Property

Gets the current entry in the collection.

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

public KeyContainerPermissionAccessEntry Current { get; }
/** @property */
public KeyContainerPermissionAccessEntry get_Current ()

public function get Current () : KeyContainerPermissionAccessEntry

Not applicable.

Property Value

The current KeyContainerPermissionAccessEntry object in the collection.

Exception typeCondition


The Current property is accessed before first calling the MoveNext method. The cursor is located before the first object in the collection.


The Current property is accessed after a call to the MoveNext method returns false, which indicates that the cursor is located after the last object in the collection.

When the enumerator is created, it does not point to an object, so the Current property is not valid and will throw an exception if it is accessed. You must first call the MoveNext method to position the cursor at the first object in the collection.

Getting the Current property multiple times with no intervening calls to MoveNext will return the same KeyContainerPermissionAccessEntry object each time.

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