ModelReaderWriterTypeBuilder.AddItemWithKey(Object, String, Object) 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 an item to the passed in collection builder under the specified key.
protected virtual void AddItemWithKey(object collectionBuilder, string key, object? item);
abstract member AddItemWithKey : obj * string * obj -> unit
override this.AddItemWithKey : obj * string * obj -> unit
Protected Overridable Sub AddItemWithKey (collectionBuilder As Object, key As String, item As Object)
Parameters
- collectionBuilder
- Object
Represents the collection builder to which the item will be added.
- key
- String
Represents the key under which the item will be added.
- item
- Object
Represents the item that will be added to the collection builder.
Remarks
The collection builder instance that is being passed in is the instance returned from CreateInstance(). The state of the collection builder is maintained internally by ModelReaderWriter and is not needed to be maintained by the implementation.