KeyContainerPermissionAccessEntryCollection.GetEnumerator 方法

定义

返回 KeyContainerPermissionAccessEntryEnumerator 对象,该对象可用于循环访问集合中的对象。Returns a KeyContainerPermissionAccessEntryEnumerator object that can be used to iterate through the objects in the collection.

public:
 System::Security::Permissions::KeyContainerPermissionAccessEntryEnumerator ^ GetEnumerator();
public System.Security.Permissions.KeyContainerPermissionAccessEntryEnumerator GetEnumerator ();
member this.GetEnumerator : unit -> System.Security.Permissions.KeyContainerPermissionAccessEntryEnumerator
Public Function GetEnumerator () As KeyContainerPermissionAccessEntryEnumerator

返回

KeyContainerPermissionAccessEntryEnumerator

可用于循环访问集合的 KeyContainerPermissionAccessEntryEnumerator 对象。A KeyContainerPermissionAccessEntryEnumerator object that can be used to iterate through the collection.

注解

使用此方法创建一个 KeyContainerPermissionAccessEntryEnumerator 对象,该对象可用于循环访问集合以获取每个项。Use this method to create a KeyContainerPermissionAccessEntryEnumerator object that can be used to iterate through the collection to get each item.

使用 Current 枚举器的属性获取集合中当前指向的项。Use the Current property of the enumerator to get the item currently pointed to in the collection.

使用 MoveNext 枚举器的方法移动到集合中的下一项。Use the MoveNext method of the enumerator to move to the next item in the collection.

使用 Reset 枚举器的方法可移至初始位置。Use the Reset method of the enumerator to move to the initial position.

备注

创建 KeyContainerPermissionAccessEntryEnumerator 对象或使用 Reset 方法将枚举数移到集合中的第一项后,必须调用 MoveNext 方法。After you create a KeyContainerPermissionAccessEntryEnumerator object or use the Reset method to move the enumerator to the first item in the collection, you must call the MoveNext method. 否则,由属性表示的项 Current 是不确定的。Otherwise, the item represented by the Current property is undefined.

适用于

另请参阅