Transaction.SyncRoot Property

Definition

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

public:
 property System::Object ^ SyncRoot { System::Object ^ get(); };
public object SyncRoot { get; }
Public ReadOnly Property SyncRoot As Object

Property Value

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
// ...
}

Applies to