Share via


TransactionContext.Add Method

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

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Syntax

'Declaration
Public Sub Add ( _
    key As Object, _
    value As Object _
)
public void Add(
    Object key,
    Object value
)
public:
void Add(
    Object^ key, 
    Object^ value
)
member Add : 
        key:Object * 
        value:Object -> unit
public function Add(
    key : Object, 
    value : Object
)

Parameters

  • key
    Type: System.Object

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

  • value
    Type: System.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

.NET Framework Security

See Also

Reference

TransactionContext Class

Microsoft.VisualStudio.Modeling Namespace