System.Security.Policy.ApplicationTrustCollection.GetEnumerator Method

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

Syntax

public ApplicationTrustEnumerator GetEnumerator ()

Returns

An System.Security.Policy.ApplicationTrustEnumerator that can be used to iterate over the collection.

Remarks

The System.Security.Policy.ApplicationTrustEnumerator implements the 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.

Note:

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.

Requirements

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