ReferenceContext.Add Method
Associate a value with a particular key in the reference context.
Namespace: Microsoft.VisualStudio.Modeling.Integration
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.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.ObjectThe key to associate the value with. Cannot be null.
value
Type: System.ObjectThe value to be associated with the key. Can be null.
.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.