Share via


ODataOutputContext.CreateODataCollectionWriterAsync(IEdmTypeReference) Method

Definition

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

public virtual System.Threading.Tasks.Task<Microsoft.OData.ODataCollectionWriter> CreateODataCollectionWriterAsync (Microsoft.OData.Edm.IEdmTypeReference itemTypeReference);
abstract member CreateODataCollectionWriterAsync : Microsoft.OData.Edm.IEdmTypeReference -> System.Threading.Tasks.Task<Microsoft.OData.ODataCollectionWriter>
override this.CreateODataCollectionWriterAsync : Microsoft.OData.Edm.IEdmTypeReference -> System.Threading.Tasks.Task<Microsoft.OData.ODataCollectionWriter>
Public Overridable Function CreateODataCollectionWriterAsync (itemTypeReference As IEdmTypeReference) As Task(Of ODataCollectionWriter)

Parameters

itemTypeReference
IEdmTypeReference

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

Returns

A running task for the created collection writer.

Remarks

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

Applies to