ODataPrimitiveSerializer.WriteObject Method
This member overrides ODataSerializer.WriteObject(Object, Type, ODataMessageWriter, ODataSerializerContext).
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 ODataPrimitiveSerializer
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
- type
Type: System.Type
- messageWriter
Type: ODataMessageWriter
- writeContext
Type: System.Web.Http.OData.Formatter.Serialization.ODataSerializerContext