Share via


ModelItemDictionary.Add Method (Object, Object)

When overridden in a derived class, adds the value to the dictionary under the specified key.

Namespace:  Microsoft.Windows.Design.Model
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustOverride Function Add ( _
    key As Object, _
    value As Object _
) As ModelItem
public abstract ModelItem Add(
    Object key,
    Object value
)
public:
virtual ModelItem^ Add(
    Object^ key, 
    Object^ value
) abstract
abstract Add : 
        key:Object * 
        value:Object -> ModelItem 
public abstract function Add(
    key : Object, 
    value : Object
) : ModelItem

Parameters

Return Value

Type: Microsoft.Windows.Design.Model.ModelItem
A ModelItem representing the key in the dictionary.

Remarks

This method wraps the key and value in an item.

.NET Framework Security

See Also

Reference

ModelItemDictionary Class

Add Overload

Microsoft.Windows.Design.Model Namespace

Other Resources

WPF Designer Extensibility Architecture