Transaction.SyncRoot property

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)

'Declaration
PublicReadOnlyPropertySyncRootAsObjectGet
'Usage
DiminstanceAsTransactionDimvalueAsObjectvalue = instance.SyncRoot

Property value

Type: System.Object

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

Show:
© 2014 Microsoft