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.

public:
 abstract void Add(System::Activities::Presentation::Model::ModelItem ^ key, System::Activities::Presentation::Model::ModelItem ^ value);
public abstract void Add (System.Activities.Presentation.Model.ModelItem key, System.Activities.Presentation.Model.ModelItem value);
abstract member Add : System.Activities.Presentation.Model.ModelItem * System.Activities.Presentation.Model.ModelItem -> unit
Public MustOverride Sub Add (key As ModelItem, value As ModelItem)

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

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.

public:
 abstract System::Activities::Presentation::Model::ModelItem ^ Add(System::Object ^ key, System::Object ^ value);
public abstract System.Activities.Presentation.Model.ModelItem Add (object key, object value);
abstract member Add : obj * obj -> System.Activities.Presentation.Model.ModelItem
Public MustOverride Function Add (key As Object, value As Object) As ModelItem

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