你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ModelReaderWriterTypeBuilder.AddItemWithKey(Object, String, Object) Method

Definition

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.

Applies to