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 Code | |
---|---|
public Object SyncRoot {get;} |
Syntax
[Visual Basic .NET]
Copy 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 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)