Transaction.SyncRoot Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
// ...
}