ODataEdmTypeSerializer.WriteObjectInline Method (Object, IEdmTypeReference, ODataWriter, ODataSerializerContext)
Writes the given object specified by the parameter graph as a part of an existing OData message using the given messageWriter and the writeContext.
Namespace: System.Web.Http.OData.Formatter.Serialization
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
public virtual void WriteObjectInline(
object graph,
IEdmTypeReference expectedType,
ODataWriter writer,
ODataSerializerContext writeContext
)
public:
virtual void WriteObjectInline(
Object^ graph,
IEdmTypeReference^ expectedType,
ODataWriter^ writer,
ODataSerializerContext^ writeContext
)
abstract WriteObjectInline :
graph:Object *
expectedType:IEdmTypeReference *
writer:ODataWriter *
writeContext:ODataSerializerContext -> unit
override WriteObjectInline :
graph:Object *
expectedType:IEdmTypeReference *
writer:ODataWriter *
writeContext:ODataSerializerContext -> unit
Public Overridable Sub WriteObjectInline (
graph As Object,
expectedType As IEdmTypeReference,
writer As ODataWriter,
writeContext As ODataSerializerContext
)
Parameters
graph
Type: System.ObjectThe object to be written.
expectedType
Type: Microsoft.Data.Edm.IEdmTypeReferenceThe expected EDM type of the object represented by graph.
writer
Type: Microsoft.Data.OData.ODataWriterThe ODataWriter to be used for writing.
writeContext
Type: System.Web.Http.OData.Formatter.Serialization.ODataSerializerContext
See Also
ODataEdmTypeSerializer Class
System.Web.Http.OData.Formatter.Serialization Namespace
Return to top