TransactionContext.Add(Object, Object) Method
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.
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