Share via


ODataFeedSerializer.CreateODataFeed Method (IEnumerable, IEdmCollectionTypeReference, ODataSerializerContext)

 

Create the ODataFeed to be written for the given feed instance.

Namespace:   System.Web.OData.Formatter.Serialization
Assembly:  System.Web.OData (in System.Web.OData.dll)

Syntax

public virtual ODataFeed CreateODataFeed(
    IEnumerable feedInstance,
    IEdmCollectionTypeReference feedType,
    ODataSerializerContext writeContext
)
public:
virtual ODataFeed^ CreateODataFeed(
    IEnumerable^ feedInstance,
    IEdmCollectionTypeReference^ feedType,
    ODataSerializerContext^ writeContext
)
abstract CreateODataFeed : 
        feedInstance:IEnumerable *
        feedType:IEdmCollectionTypeReference *
        writeContext:ODataSerializerContext -> ODataFeed
override CreateODataFeed : 
        feedInstance:IEnumerable *
        feedType:IEdmCollectionTypeReference *
        writeContext:ODataSerializerContext -> ODataFeed
Public Overridable Function CreateODataFeed (
    feedInstance As IEnumerable,
    feedType As IEdmCollectionTypeReference,
    writeContext As ODataSerializerContext
) As ODataFeed

Parameters

Return Value

Type: Microsoft.OData.Core.ODataFeed

The created ODataFeed object.

See Also

ODataFeedSerializer Class
System.Web.OData.Formatter.Serialization Namespace

Return to top