Transaction.SyncRoot

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#]

public Object SyncRoot {get;}

Syntax

[Visual Basic .NET]

Public ReadOnly Property SyncRoot As Object

Remarks

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

Example 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

Concepts

Transaction Sip Class