Share via


ODataFeedSerializer.CreateODataFeed Method

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

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

Syntax

'Declaration
Public Overridable Function CreateODataFeed ( _
    feedInstance As IEnumerable, _
    feedType As IEdmCollectionTypeReference, _
    writeContext As ODataSerializerContext _
) As ODataFeed
'Usage
Dim instance As ODataFeedSerializer 
Dim feedInstance As IEnumerable 
Dim feedType As IEdmCollectionTypeReference 
Dim writeContext As ODataSerializerContext 
Dim returnValue As ODataFeed 

returnValue = instance.CreateODataFeed(feedInstance, _
    feedType, writeContext)
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 function CreateODataFeed(
    feedInstance : IEnumerable, 
    feedType : IEdmCollectionTypeReference, 
    writeContext : ODataSerializerContext
) : ODataFeed

Parameters

  • feedType
    Type: IEdmCollectionTypeReference
    The type of the feed.

Return Value

Type: ODataFeed
The created ODataFeed object.

See Also

Reference

ODataFeedSerializer Class

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