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
- graph
Type: System.Object
The object to be written.
- type
Type: System.Type
The type to create.
- messageWriter
Type: ODataMessageWriter
The ODataMessageWriter to be used for writing.
- writeContext
Type: System.Web.Http.OData.Formatter.Serialization.ODataSerializerContext
The serialization context.