BranchCollection.GetEnumerator

BranchCollection.GetEnumerator

The GetEnumerator method obtains an IEnumerator interface used for iterating through the branch collection.

Syntax

[C#]

public IEnumerator GetEnumerator();

Syntax

[Visual Basic .NET]

Public Function GetEnumerator() As IEnumerator

Parameters

This method has no parameters.

Return Values

An IEnumerator interface that can be used to iterate through the collection of client ClientTransaction objects.

Remarks

The IEnumerator interface 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.Current property, which will return the element as an object that must be recast as a ClientTransaction type.

Requirements

Redistributable: Requires Microsoft Lync Server 2010

Namespace:Microsoft.Rtc.Sip

Assembly: ServerAgent (in ServerAgent.dll)

See Also

Concepts

BranchCollection

ClientTransaction