Share via


Transaction.SyncRoot

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

  public Object SyncRoot {get;} 

Syntax

 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 R2

Namespace:Microsoft.Rtc.Sip

Assembly: ServerAgent (in ServerAgent.dll)

See Also

Concepts

Transaction Sip Class