Dela via


ODataMessageReader.CreateODataCollectionReaderAsync Method (IEdmTypeReference)

Asynchronously creates an ODataCollectionReader to read 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 CreateODataCollectionReaderAsync ( _
    expectedItemTypeReference As IEdmTypeReference _
) As Task(Of ODataCollectionReader)
'Usage
Dim instance As ODataMessageReader 
Dim expectedItemTypeReference As IEdmTypeReference 
Dim returnValue As Task(Of ODataCollectionReader)

returnValue = instance.CreateODataCollectionReaderAsync(expectedItemTypeReference)
public Task<ODataCollectionReader> CreateODataCollectionReaderAsync(
    IEdmTypeReference expectedItemTypeReference
)
public:
Task<ODataCollectionReader^>^ CreateODataCollectionReaderAsync(
    IEdmTypeReference^ expectedItemTypeReference
)
member CreateODataCollectionReaderAsync : 
        expectedItemTypeReference:IEdmTypeReference -> Task<ODataCollectionReader> 
public function CreateODataCollectionReaderAsync(
    expectedItemTypeReference : IEdmTypeReference
) : Task<ODataCollectionReader>

Parameters

Return Value

Type: System.Threading.Tasks.Task<ODataCollectionReader>
A running task for the created collection reader.

See Also

Reference

ODataMessageReader Class

CreateODataCollectionReaderAsync Overload

Microsoft.Data.OData Namespace