PrincipalCollection.IEnumerable.GetEnumerator PrincipalCollection.IEnumerable.GetEnumerator 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.Security.SecurityCritical]
System.Collections.IEnumerator IEnumerable.GetEnumerator ();
Function GetEnumerator () As IEnumerator Implements IEnumerable.GetEnumerator

Returns

An IEnumerator containing the principals in the PrincipalCollection.

Implements

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