Share via


ODataMessageWriter.CreateODataResourceWriterAsync Method

Definition

Overloads

CreateODataResourceWriterAsync()

Asynchronously creates an ODataWriter to write a resource.

CreateODataResourceWriterAsync(IEdmNavigationSource)

Asynchronously creates an ODataWriter to write a resource.

CreateODataResourceWriterAsync(IEdmNavigationSource, IEdmStructuredType)

Asynchronously creates an ODataWriter to write a resource.

CreateODataResourceWriterAsync()

Asynchronously creates an ODataWriter to write a resource.

public System.Threading.Tasks.Task<Microsoft.OData.ODataWriter> CreateODataResourceWriterAsync ();
member this.CreateODataResourceWriterAsync : unit -> System.Threading.Tasks.Task<Microsoft.OData.ODataWriter>
Public Function CreateODataResourceWriterAsync () As Task(Of ODataWriter)

Returns

A running task for the created writer.

Applies to

CreateODataResourceWriterAsync(IEdmNavigationSource)

Asynchronously creates an ODataWriter to write a resource.

public System.Threading.Tasks.Task<Microsoft.OData.ODataWriter> CreateODataResourceWriterAsync (Microsoft.OData.Edm.IEdmNavigationSource navigationSource);
member this.CreateODataResourceWriterAsync : Microsoft.OData.Edm.IEdmNavigationSource -> System.Threading.Tasks.Task<Microsoft.OData.ODataWriter>
Public Function CreateODataResourceWriterAsync (navigationSource As IEdmNavigationSource) As Task(Of ODataWriter)

Parameters

navigationSource
IEdmNavigationSource

The navigation source we are going to write entities for.

Returns

A running task for the created writer.

Applies to

CreateODataResourceWriterAsync(IEdmNavigationSource, IEdmStructuredType)

Asynchronously creates an ODataWriter to write a resource.

public System.Threading.Tasks.Task<Microsoft.OData.ODataWriter> CreateODataResourceWriterAsync (Microsoft.OData.Edm.IEdmNavigationSource navigationSource, Microsoft.OData.Edm.IEdmStructuredType resourceType);
member this.CreateODataResourceWriterAsync : Microsoft.OData.Edm.IEdmNavigationSource * Microsoft.OData.Edm.IEdmStructuredType -> System.Threading.Tasks.Task<Microsoft.OData.ODataWriter>
Public Function CreateODataResourceWriterAsync (navigationSource As IEdmNavigationSource, resourceType As IEdmStructuredType) As Task(Of ODataWriter)

Parameters

navigationSource
IEdmNavigationSource

The navigation source we are going to write resource set for.

resourceType
IEdmStructuredType

The structured 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.

Applies to