The GetEnumeratormethod obtains an IEnumeratorinterface that is used for iterating through the branch collection.
Assembly: ServerAgent(in ServerAgent.dll)
Syntax
Visual Basic (declaration) |
---|
Public Function GetEnumerator As IEnumerator |
Visual Basic (usage) |
---|
Dim instance As BranchCollection Dim returnValue As IEnumerator returnValue = instance. GetEnumerator() |
C# |
---|
public IEnumerator GetEnumerator() |
Implements
IEnumerable . . :: . . GetEnumerator () () () ()Remarks
The IEnumeratorinterface provides a method, IEnumerator.MoveNext(), which allows the caller to increment forward through the collection. To return to the start of the collection, call IEnumerator.Reset(). The current branch element can be obtained with the IEnumerator.Currentproperty, which returns the element as an object that must be recast as a ClientTransaction type.