TransactionContext.Add(Object, Object) Method

Definition

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

public:
 void Add(System::Object ^ key, System::Object ^ value);
public void Add (object key, object value);
member this.Add : obj * obj -> unit
Public Sub Add (key As Object, value As Object)

Parameters

key
Object

The key to associate the value with. Cannot be null.

value
Object

The value to be associated with the key. Can be null.

Remarks

Suggested best practice is to use GUIDs for the keys to ensure uniqueness

Applies to