ODataMessageWriter.CreateODataCollectionWriterAsync Method (IEdmTypeReference)
Asynchronously creates an ODataCollectionWriter to write a collection of primitive or complex values (as result of a service operation invocation).
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Public Function CreateODataCollectionWriterAsync ( _
itemTypeReference As IEdmTypeReference _
) As Task(Of ODataCollectionWriter)
'Usage
Dim instance As ODataMessageWriter
Dim itemTypeReference As IEdmTypeReference
Dim returnValue As Task(Of ODataCollectionWriter)
returnValue = instance.CreateODataCollectionWriterAsync(itemTypeReference)
public Task<ODataCollectionWriter> CreateODataCollectionWriterAsync(
IEdmTypeReference itemTypeReference
)
public:
Task<ODataCollectionWriter^>^ CreateODataCollectionWriterAsync(
IEdmTypeReference^ itemTypeReference
)
member CreateODataCollectionWriterAsync :
itemTypeReference:IEdmTypeReference -> Task<ODataCollectionWriter>
public function CreateODataCollectionWriterAsync(
itemTypeReference : IEdmTypeReference
) : Task<ODataCollectionWriter>
Parameters
- itemTypeReference
Type: Microsoft.Data.Edm.IEdmTypeReference
The EDM type reference of the item.
Return Value
Type: System.Threading.Tasks.Task<ODataCollectionWriter>
A running task for the created collection writer.