Jaa


ODataOutputContext.CreateODataResourceSetWriterAsync Method

Definition

Asynchronously creates an ODataWriter to write a resource set.

public virtual System.Threading.Tasks.Task<Microsoft.OData.ODataWriter> CreateODataResourceSetWriterAsync (Microsoft.OData.Edm.IEdmEntitySetBase entitySet, Microsoft.OData.Edm.IEdmStructuredType entityType);
abstract member CreateODataResourceSetWriterAsync : Microsoft.OData.Edm.IEdmEntitySetBase * Microsoft.OData.Edm.IEdmStructuredType -> System.Threading.Tasks.Task<Microsoft.OData.ODataWriter>
override this.CreateODataResourceSetWriterAsync : Microsoft.OData.Edm.IEdmEntitySetBase * Microsoft.OData.Edm.IEdmStructuredType -> System.Threading.Tasks.Task<Microsoft.OData.ODataWriter>
Public Overridable Function CreateODataResourceSetWriterAsync (entitySet As IEdmEntitySetBase, entityType As IEdmStructuredType) As Task(Of ODataWriter)

Parameters

entitySet
IEdmEntitySetBase

The entity set we are going to write entities for.

entityType
IEdmStructuredType

The entity type for the entries in the resource set to be written (or null if the entity set base type should be used).

Returns

A running task for the created writer.

Remarks

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

Applies to