TransactionContext.Add Method
Associate a value with a particular key in the transaction context.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaración
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.