ApplicationTrustCollection.GetEnumerator Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈