public T GetValue( Transaction transaction )
Public Function GetValue ( transaction As Transaction ) As T
public: T GetValue( Transaction^ transaction )
member GetValue : transaction : Transaction -> 'T
This method guarantees snapshot isolation. This means that it will return either the last value that was passed to SetValue(Transaction, T) within the same transaction, or the value of this transacted property that was in place when the transaction started. This is true even if other transactions have committed a change to this transacted property since this transaction started.
If you need to ensure that the value returned by this method is the latest one, call EnsureValue(Transaction). When a transaction is committed, a TransactionConflictException will be raised if an ensured value was changed by a previously committed transaction.