ODataCollectionSerializer.WriteCollection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes the given graph
using the given writer
.
public void WriteCollection (Microsoft.OData.ODataCollectionWriter writer, object graph, Microsoft.OData.Edm.IEdmTypeReference collectionType, Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext writeContext);
member this.WriteCollection : Microsoft.OData.ODataCollectionWriter * obj * Microsoft.OData.Edm.IEdmTypeReference * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> unit
Public Sub WriteCollection (writer As ODataCollectionWriter, graph As Object, collectionType As IEdmTypeReference, writeContext As ODataSerializerContext)
Parameters
- writer
- ODataCollectionWriter
The ODataCollectionWriter to use.
- graph
- Object
The collection to write.
- collectionType
- IEdmTypeReference
The EDM type of the collection.
- writeContext
- ODataSerializerContext
The serializer context.