ModelItemDictionary.Add Method

Definition

Adds the value to the dictionary under the given key.

Overloads

Add(ModelItem, ModelItem)

Adds the value to the dictionary under the given key.

Add(Object, Object)

Adds the value to the dictionary under the given key. This method wraps the key and value in a set of ModelItem objects.

Add(ModelItem, ModelItem)

Adds the value to the dictionary under the given key.

C#
public abstract void Add(System.Activities.Presentation.Model.ModelItem key, System.Activities.Presentation.Model.ModelItem value);

Parameters

key
ModelItem

The ModelItem that represents the key in the key/value pair to be added.

value
ModelItem

The ModelItem that represents the value in the key/value pair to be added.

Implements

Exceptions

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Add(Object, Object)

Adds the value to the dictionary under the given key. This method wraps the key and value in a set of ModelItem objects.

C#
public abstract System.Activities.Presentation.Model.ModelItem Add(object key, object value);

Parameters

key
Object

The key in the key/value pair to be added.

value
Object

The value in the key/value pair to be added.

Returns

A ModelItem that represents the key.

Exceptions

If key or value is null.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1