System.Security.Permissions.KeyContainerPermissionAccessEntryCollection.GetEnumerator Method

Returns a System.Security.Permissions.KeyContainerPermissionAccessEntryEnumerator object that can be used to iterate through the objects in the collection.

Syntax

public KeyContainerPermissionAccessEntryEnumerator GetEnumerator ()

Returns

A System.Security.Permissions.KeyContainerPermissionAccessEntryEnumerator object that can be used to iterate through the collection.

Remarks

Use this method to create a System.Security.Permissions.KeyContainerPermissionAccessEntryEnumerator object that can be used to iterate through the collection to get each item.

Use the KeyContainerPermissionAccessEntryEnumerator.Current property of the enumerator to get the item currently pointed to in the collection.

Use the KeyContainerPermissionAccessEntryEnumerator.MoveNext method of the enumerator to move to the next item in the collection.

Use the KeyContainerPermissionAccessEntryEnumerator.Reset method of the enumerator to move to the initial position.

Note:

After you create a System.Security.Permissions.KeyContainerPermissionAccessEntryEnumerator object or use the KeyContainerPermissionAccessEntryEnumerator.Reset method to move the enumerator to the first item in the collection, you must call the KeyContainerPermissionAccessEntryEnumerator.MoveNext method. Otherwise, the item represented by the KeyContainerPermissionAccessEntryEnumerator.Current property is undefined.

Requirements

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0