ODataEdmTypeSerializer.WriteObjectInline Method
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
'Declaration
Public Overridable Sub WriteObjectInline ( _
graph As Object, _
expectedType As IEdmTypeReference, _
writer As ODataWriter, _
writeContext As ODataSerializerContext _
)
'Usage
Dim instance As ODataEdmTypeSerializer
Dim graph As Object
Dim expectedType As IEdmTypeReference
Dim writer As ODataWriter
Dim writeContext As ODataSerializerContext
instance.WriteObjectInline(graph, expectedType, _
writer, writeContext)
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 function WriteObjectInline(
graph : Object,
expectedType : IEdmTypeReference,
writer : ODataWriter,
writeContext : ODataSerializerContext
)
Parameters
- graph
Type: System.Object
The object to be written.
- expectedType
Type: IEdmTypeReference
The type to create.
- writer
Type: ODataWriter
The ODataWriter to be used for writing.
- writeContext
Type: System.Web.Http.OData.Formatter.Serialization.ODataSerializerContext
The ODataSerializerContext.