KeyContainerPermissionAccessEntryEnumerator.Current Property


Gets the current entry in the collection.

 property System::Security::Permissions::KeyContainerPermissionAccessEntry ^ Current { System::Security::Permissions::KeyContainerPermissionAccessEntry ^ get(); };
public System.Security.Permissions.KeyContainerPermissionAccessEntry Current { get; }
member this.Current : System.Security.Permissions.KeyContainerPermissionAccessEntry
Public ReadOnly Property Current As KeyContainerPermissionAccessEntry

Property Value


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.

Applies to