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
- key
Type: System.Object
A ModelItem that is the key for this dictionary entry.
- value
Type: System.Object
A ModelItem that is the value for this dictionary entry.
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
- 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.
See Also
Reference
Microsoft.Windows.Design.Model Namespace