IEnumeratorContract(Of C) Interface
Enumerates the elements of a generic collection of IContract objects.
Assembly: System.AddIn.Contract (in System.AddIn.Contract.dll)
Specifies that the contract is accessible to a client until the client revokes the contract.(Inherited from IContract.)
Returns the IContract in the collection at the current position of the enumerator.
Advances the enumerator to the next element of the collection.
Returns a contract that is implemented by this contract.(Inherited from IContract.)
Sets the enumerator to its initial position, which is before the first element in the collection.
Specifies that the contract is no longer accessible to a client.(Inherited from IContract.)
Enumerators can be used to read the data in the collection, but they cannot be used to modify the underlying collection.
Initially, the enumerator is positioned before the first element in the collection. At this position, the return value of GetCurrent is undefined. Therefore, you must call MoveNext to advance the enumerator to the first element of the collection before calling GetCurrent.
If MoveNext passes the end of the collection, the enumerator is positioned after the last element in the collection and MoveNext returns false. When the enumerator is at this position, subsequent calls to MoveNext also return false. If the last call to MoveNext returned false, the return value of GetCurrent is undefined.
An enumerator remains valid as long as the collection remains unchanged. If changes are made to the collection, such as adding, modifying, or deleting elements, the enumerator is irrecoverably invalidated and its behavior is undefined.
Available since 3.5