Share via


ODataOutputContext.CreateODataCollectionWriter(IEdmTypeReference) Method

Definition

Creates an ODataCollectionWriter to write a collection of primitive or complex values (as result of a service operation invocation).

public virtual Microsoft.OData.ODataCollectionWriter CreateODataCollectionWriter (Microsoft.OData.Edm.IEdmTypeReference itemTypeReference);
abstract member CreateODataCollectionWriter : Microsoft.OData.Edm.IEdmTypeReference -> Microsoft.OData.ODataCollectionWriter
override this.CreateODataCollectionWriter : Microsoft.OData.Edm.IEdmTypeReference -> Microsoft.OData.ODataCollectionWriter
Public Overridable Function CreateODataCollectionWriter (itemTypeReference As IEdmTypeReference) As ODataCollectionWriter

Parameters

itemTypeReference
IEdmTypeReference

The item type of the collection being written or null if no metadata is available.

Returns

The created collection writer.

Remarks

The write must flush the output when it's finished (inside the last Write call).

Applies to