ODataSerializer.WriteObject Method (Object, Type, ODataMessageWriter, ODataSerializerContext)
Writes the given object specified by the parameter graph as a whole using the given messageWriter and writeContext.
Namespace: System.Web.Http.OData.Formatter.Serialization
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
public virtual void WriteObject(
object graph,
Type type,
ODataMessageWriter messageWriter,
ODataSerializerContext writeContext
)
public:
virtual void WriteObject(
Object^ graph,
Type^ type,
ODataMessageWriter^ messageWriter,
ODataSerializerContext^ writeContext
)
abstract WriteObject :
graph:Object *
type:Type *
messageWriter:ODataMessageWriter *
writeContext:ODataSerializerContext -> unit
override WriteObject :
graph:Object *
type:Type *
messageWriter:ODataMessageWriter *
writeContext:ODataSerializerContext -> unit
Public Overridable Sub WriteObject (
graph As Object,
type As Type,
messageWriter As ODataMessageWriter,
writeContext As ODataSerializerContext
)
Parameters
graph
Type: System.ObjectThe object to be written
type
Type: System.TypeThe type of the object to be written.
messageWriter
Type: Microsoft.Data.OData.ODataMessageWriterThe ODataMessageWriter to be used for writing.
writeContext
Type: System.Web.Http.OData.Formatter.Serialization.ODataSerializerContext
See Also
ODataSerializer Class
System.Web.Http.OData.Formatter.Serialization Namespace
Return to top