Jaa


ODataOutputContext.CreateODataUriParameterResourceSetWriterAsync Method

Definition

Asynchronously Creates an ODataWriter to write a resource set into a Uri operation parameter.

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

Parameters

entitySet
IEdmEntitySetBase

The entity set we are going to write resources for.

resourceType
IEdmStructuredType

The resource type for the items 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