ODataOutputContext.CreateODataCollectionWriterAsync(IEdmTypeReference) 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.
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).