Share via


ODataResourceSerializer.WriteObjectInline 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 void WriteObjectInline (object graph, Microsoft.OData.Edm.IEdmTypeReference expectedType, Microsoft.OData.ODataWriter writer, Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext writeContext);
override this.WriteObjectInline : obj * Microsoft.OData.Edm.IEdmTypeReference * Microsoft.OData.ODataWriter * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> unit
Public Overrides Sub WriteObjectInline (graph As Object, expectedType As IEdmTypeReference, writer As ODataWriter, writeContext As ODataSerializerContext)

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.

Applies to