Export (0) Print
Expand All

KeyContainerPermissionAccessEntryEnumerator.Current Property

Gets the current entry in the collection.

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

public KeyContainerPermissionAccessEntry Current { get; }


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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft