Edit

Bagikan melalui


PrincipalCollection.IEnumerable.GetEnumerator Method

Definition

Returns an enumerator to iterate through the principals in the PrincipalCollection.

 virtual System::Collections::IEnumerator ^ System.Collections.IEnumerable.GetEnumerator() = System::Collections::IEnumerable::GetEnumerator;
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
[System.Security.SecurityCritical]
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
abstract member System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
override this.System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
[<System.Security.SecurityCritical>]
abstract member System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
override this.System.Collections.IEnumerable.GetEnumerator : unit -> System.Collections.IEnumerator
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator

Returns

An IEnumerator containing the principals in the PrincipalCollection.

Implements

Attributes

Remarks

Conceptually, each instance of PrincipalCollection has a single enumerator associated with it. Although multiple calls to IEnumerable.GetEnumerator return distinct IEnumerator objects, they share the same internal state.

Applies to