Редагувати

Поділитися через


ApplicationTrustCollection.GetEnumerator Method

Definition

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

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

Returns

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

Remarks

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.

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.

Applies to