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
feedInstance
Type: System.Collections.IEnumerableThe instance representing the feed being written.
feedType
Type: Microsoft.OData.Edm.IEdmCollectionTypeReferenceThe EDM type of the feed being written.
writeContext
Type: System.Web.OData.Formatter.Serialization.ODataSerializerContextThe serializer context.
Return Value
Type: Microsoft.OData.Core.ODataFeed
The created ODataFeed object.
See Also
ODataFeedSerializer Class
System.Web.OData.Formatter.Serialization Namespace
Return to top