Object space used for synchronizing access to a group of objects related to a server or a UAC transaction.
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; } |
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 // ... } |