Share via


ODataResourceSerializer.WriteObjectInlineAsync Method

Definition

Writes the given object specified by the parameter graph as a part of an existing OData message using the given messageWriter and the writeContext.

public override System.Threading.Tasks.Task WriteObjectInlineAsync (object graph, Microsoft.OData.Edm.IEdmTypeReference expectedType, Microsoft.OData.ODataWriter writer, Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext writeContext);
override this.WriteObjectInlineAsync : obj * Microsoft.OData.Edm.IEdmTypeReference * Microsoft.OData.ODataWriter * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> System.Threading.Tasks.Task
Public Overrides Function WriteObjectInlineAsync (graph As Object, expectedType As IEdmTypeReference, writer As ODataWriter, writeContext As ODataSerializerContext) As Task

Parameters

graph
Object

The object to be written.

expectedType
IEdmTypeReference

The expected EDM type of the object represented by graph.

writer
ODataWriter

The ODataWriter to be used for writing.

Returns

Applies to