Transaction.SyncRoot

The SyncRoot property contains an object used for synchronizing access to a group of objects related to a server or client transaction.

Syntax

[C#]

  Copy imageCopy Code
public Object SyncRoot {get;}

Syntax

[Visual Basic .NET]

  Copy imageCopy Code
Public ReadOnly Property SyncRoot As Object

Remarks

To synchronize access to a transaction, obtain this property and pass it to lock().

Example Code

  Copy imageCopy Code
lock (myServerTransaction.SyncRoot) {
// ...
// Perform thread operation on transaction here
// ...
}

Requirements

Redistributable: Requires Microsoft Lync Server 2010

Namespace:Microsoft.Rtc.Sip

Assembly: ServerAgent (in ServerAgent.dll)

See Also