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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應