ModelItemDictionary.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Implements
Exceptions
If the ModelItemDictionary is read-only.
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
.
If the ModelItemDictionary is read-only.
Applies to
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour