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.
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 Office Communications Server 2007
Namespace:Microsoft.Rtc.Sip Namespace
Assembly: ServerAgent (in ServerAgent.dll)