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

ModelReaderWriterTypeBuilder.ConvertCollectionBuilder(Object) Method

Definition

Converts the passed in builder collection into the requested collection type.

protected virtual object ConvertCollectionBuilder(object collectionBuilder);
abstract member ConvertCollectionBuilder : obj -> obj
override this.ConvertCollectionBuilder : obj -> obj
Protected Overridable Function ConvertCollectionBuilder (collectionBuilder As Object) As Object

Parameters

collectionBuilder
Object

The builder collection that is being transformed.

Returns

The requested collection format.

Remarks

In the case like an array which you cannot dynamically add to CreateInstance() would have returned an instance of List<T> which matches the BuilderType. This method would then convert the List<T> into an array by calling ToArray().

Applies to