Share via


ODataMetadataSerializer.WriteObject Method

Definition

Writes the given object specified by the parameter graph as a whole using the given messageWriter and writeContext.

public override void WriteObject (object graph, Type type, Microsoft.OData.ODataMessageWriter messageWriter, Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext writeContext);
override this.WriteObject : obj * Type * Microsoft.OData.ODataMessageWriter * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> unit
Public Overrides Sub WriteObject (graph As Object, type As Type, messageWriter As ODataMessageWriter, writeContext As ODataSerializerContext)

Parameters

graph
Object

The object to be written

type
Type

The type of the object to be written.

messageWriter
ODataMessageWriter

The ODataMessageWriter to be used for writing.

Remarks

The metadata written is from the model set on the messageWriter. The graph is not used.

Applies to