Object space used for synchronizing access to a group of objects related to a server or a UAC transaction.

Namespace:  Microsoft.Rtc.Sip
Assembly:  ServerAgent(in ServerAgent.dll)

Syntax

Visual Basic (declaration)
Public 
ReadOnly 
Property 
SyncRoot 
As 
Object
	
Get
Visual Basic (usage)
Dim 
instance 
As 

Transaction
Dim 
value 
As 
Object

value = instance.
SyncRoot
C#
public 
Object 
SyncRoot { 
get; }

Property value

Type: System . . :: . . Object

Remarks

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

Example Code

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

See also