ApplicationTrustEnumerator.MoveNext 方法
定义
移动到 ApplicationTrustCollection 集合中的下一个元素。Moves to the next element in the ApplicationTrustCollection collection.
public:
virtual bool MoveNext();
public bool MoveNext ();
abstract member MoveNext : unit -> bool
override this.MoveNext : unit -> bool
Public Function MoveNext () As Boolean
返回
如果枚举数已成功地推进到下一个元素,则为 true;如果枚举数传递到集合的末尾,则为 false。true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.
实现
注解
MoveNext false 如果集合中没有对象,则该方法立即返回。The MoveNext method immediately returns false if there are no objects in the collection.
MoveNext 将返回, true 直到它到达集合的末尾。MoveNext will return true until it has reached the end of the collection. 然后,它将 false 针对每个连续调用返回。It will then return false for each successive call. 但在 MoveNext 返回后 false ,访问 Current 属性将引发异常。However, after MoveNext has returned false, accessing the Current property will throw an exception.
创建时,枚举器将定位在集合中的第一个对象之前,对的 ApplicationTrust 第一个调用将 MoveNext 枚举器定位到集合中的第一个对象。Upon creation, an enumerator is positioned before the first ApplicationTrust object in the collection, and the first call to MoveNext positions the enumerator at the first object in the collection.