ApplicationTrustCollection.GetEnumerator ApplicationTrustCollection.GetEnumerator ApplicationTrustCollection.GetEnumerator ApplicationTrustCollection.GetEnumerator Method


Returns an object that can be used to iterate over the collection.

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



The ApplicationTrustEnumerator implements the System.Collections.IEnumerator interface that allows you to move within a collection.

Use the IEnumerator.Current property to get the item currently pointed to in the collection.

Use the IEnumerator.MoveNext method to move to the next item in the collection.

Use the IEnumerator.Reset method to move the enumerator to its initial position.


After you create the enumerator, or use the IEnumerator.Reset method to reposition the enumerator to the start of the collection, you must then call the IEnumerator.MoveNext method to position the enumerator to the first item. Otherwise, the item represented by the IEnumerator.Current property is undefined.

Applies to