Share via


BranchCollection.GetEnumerator

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

BranchCollection.GetEnumerator

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

Syntax

  public IEnumerator GetEnumerator(); 

Syntax

 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 Office Communications Server 2007 R2

Namespace:Microsoft.Rtc.Sip

Assembly: ServerAgent (in ServerAgent.dll)

See Also

Concepts

BranchCollection

ClientTransaction