ServerTransaction.CreateBranch

The CreateBranch method adds a new ClientTransaction object to the ServerTransaction.Branches property.

Syntax

[C#]

  Copy imageCopy Code
public ClientTransaction CreateBranch();

Syntax

[Visual Basic .NET]

  Copy imageCopy Code
Public Function CreateBranch() As ClientTransaction

Parameters

This method has no parameters.

Return Values

Returns the instance of ClientTransaction that was added to ServerTransaction.Branches.

Remarks

This method creates an empty ClientTransaction associated with this ServerTransaction instance. The Transaction.Request property is populated by calling one of the Request.Clone () overloads on the ServerTransaction.Request property, and passing this clone to ClientTransaction.SendRequest.

If you intend to fork a request (call CreateBranch a second time on the same ServerTransaction), you must set the ServerTransaction.EnableForking property to true.

Requirements

Redistributable: Requires Microsoft Lync Server 2010

Namespace:Microsoft.Rtc.Sip

Assembly: ServerAgent (in ServerAgent.dll)

See Also