Share via


ODataFeedSerializer.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 Overrides Sub WriteObjectInline ( _
    graph As Object, _
    expectedType As IEdmTypeReference, _
    writer As ODataWriter, _
    writeContext As ODataSerializerContext _
)
'Usage
Dim instance As ODataFeedSerializer 
Dim graph As Object 
Dim expectedType As IEdmTypeReference 
Dim writer As ODataWriter 
Dim writeContext As ODataSerializerContext

instance.WriteObjectInline(graph, expectedType, _
    writer, writeContext)
public override void WriteObjectInline(
    Object graph,
    IEdmTypeReference expectedType,
    ODataWriter writer,
    ODataSerializerContext writeContext
)
public:
virtual void WriteObjectInline(
    Object^ graph, 
    IEdmTypeReference^ expectedType, 
    ODataWriter^ writer, 
    ODataSerializerContext^ writeContext
) override
abstract WriteObjectInline : 
        graph:Object * 
        expectedType:IEdmTypeReference * 
        writer:ODataWriter * 
        writeContext:ODataSerializerContext -> unit  
override WriteObjectInline : 
        graph:Object * 
        expectedType:IEdmTypeReference * 
        writer:ODataWriter * 
        writeContext:ODataSerializerContext -> unit
public override function WriteObjectInline(
    graph : Object, 
    expectedType : IEdmTypeReference, 
    writer : ODataWriter, 
    writeContext : ODataSerializerContext
)

Parameters

  • expectedType
    Type: IEdmTypeReference
    The type to create.
  • writer
    Type: ODataWriter
    The ODataWriter to be used for writing.

See Also

Reference

ODataFeedSerializer Class

System.Web.Http.OData.Formatter.Serialization Namespace