ODataMetadataSerializer.WriteObject Method (Object, Type, ODataMessageWriter, ODataSerializerContext)
Namespace: System.Web.Http.OData.Formatter.Serialization
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
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
override WriteObject :
graph:Object *
type:Type *
messageWriter:ODataMessageWriter *
writeContext:ODataSerializerContext -> unit
Public Overrides Sub WriteObject (
graph As Object,
type As Type,
messageWriter As ODataMessageWriter,
writeContext As ODataSerializerContext
)
Parameters
- graph
Type: System.Object
- type
Type: System.Type
- messageWriter
Type: Microsoft.Data.OData.ODataMessageWriter
- writeContext
Type: System.Web.Http.OData.Formatter.Serialization.ODataSerializerContext
Remarks
The metadata written is from the model set on the messageWriter. The graph is not used.
See Also
ODataMetadataSerializer Class
System.Web.Http.OData.Formatter.Serialization Namespace
Return to top