Share via


TransactionContext Class

Definition

Context object that allows clients to associated user data with the transaction. On commit all of the stored information will be discarded (and if supports disposal - disposed).

public ref class TransactionContext
public class TransactionContext
type TransactionContext = class
Public Class TransactionContext
Inheritance
TransactionContext

Constructors

TransactionContext()

Constructor

Properties

ContextInfo

Context information. Used to hold tag/value pairs

TransactionId

The Id of the containing Transaction

Methods

Add(Object, Object)

Associate a value with a particular key in the transaction context.

Contains(Object)

Query whether the specified key has been associated with a value in this transaction context

Remove(Object)

Remove the association between the specified key and its value from the transaction context, if any.

TryGetValue<T>(Object, T)

Lookup the value associated with a specified key in the transaction context.

Applies to