Share via


ODataFeedSerializer.WriteObject Method

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

'Declaration
Public Overrides Sub WriteObject ( _
    graph As Object, _
    type As Type, _
    messageWriter As ODataMessageWriter, _
    writeContext As ODataSerializerContext _
)
'Usage
Dim instance As ODataFeedSerializer 
Dim graph As Object 
Dim type As Type 
Dim messageWriter As ODataMessageWriter 
Dim writeContext As ODataSerializerContext

instance.WriteObject(graph, type, messageWriter, _
    writeContext)
public override void WriteObject(
    Object graph,
    Type type,
    ODataMessageWriter messageWriter,
    ODataSerializerContext writeContext
)
public:
virtual void WriteObject(
    Object^ graph, 
    Type^ type, 
    ODataMessageWriter^ messageWriter, 
    ODataSerializerContext^ writeContext
) override
abstract WriteObject : 
        graph:Object * 
        type:Type * 
        messageWriter:ODataMessageWriter * 
        writeContext:ODataSerializerContext -> unit  
override WriteObject : 
        graph:Object * 
        type:Type * 
        messageWriter:ODataMessageWriter * 
        writeContext:ODataSerializerContext -> unit
public override function WriteObject(
    graph : Object, 
    type : Type, 
    messageWriter : ODataMessageWriter, 
    writeContext : ODataSerializerContext
)

Parameters

See Also

Reference

ODataFeedSerializer Class

System.Web.Http.OData.Formatter.Serialization Namespace