Share via


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.10.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.

.NET Framework Security

See Also

Reference

ReferenceContext Class

Microsoft.VisualStudio.Modeling.Integration Namespace