ODataMessageWriter.CreateODataEntryWriterAsync Method (IEdmEntitySet, IEdmEntityType)
Asynchronously creates an ODataWriter to write an entry.
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Public Function CreateODataEntryWriterAsync ( _
entitySet As IEdmEntitySet, _
entityType As IEdmEntityType _
) As Task(Of ODataWriter)
'Usage
Dim instance As ODataMessageWriter
Dim entitySet As IEdmEntitySet
Dim entityType As IEdmEntityType
Dim returnValue As Task(Of ODataWriter)
returnValue = instance.CreateODataEntryWriterAsync(entitySet, _
entityType)
public Task<ODataWriter> CreateODataEntryWriterAsync(
IEdmEntitySet entitySet,
IEdmEntityType entityType
)
public:
Task<ODataWriter^>^ CreateODataEntryWriterAsync(
IEdmEntitySet^ entitySet,
IEdmEntityType^ entityType
)
member CreateODataEntryWriterAsync :
entitySet:IEdmEntitySet *
entityType:IEdmEntityType -> Task<ODataWriter>
public function CreateODataEntryWriterAsync(
entitySet : IEdmEntitySet,
entityType : IEdmEntityType
) : Task<ODataWriter>
Parameters
- entitySet
Type: Microsoft.Data.Edm.IEdmEntitySet
The EDM entity set.
- entityType
Type: Microsoft.Data.Edm.IEdmEntityType
The EDM entity type.
Return Value
Type: System.Threading.Tasks.Task<ODataWriter>
A running task for the created writer.