KeyContainerPermissionAccessEntryEnumerator.Current Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the current entry in the collection.
public:
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 KeyContainerPermissionAccessEntry object in the collection.
Exceptions
The Current property is accessed before first calling the MoveNext() method. The cursor is located before the first object in the collection.
-or-
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.
Remarks
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.