Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Writes the given graph using the given writer.
Namespace:   System.Web.Http.OData.Formatter.Serialization
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
public void WriteCollection(
    ODataCollectionWriter writer,
    object graph,
    IEdmTypeReference collectionType,
    ODataSerializerContext writeContext
)
public:
void WriteCollection(
    ODataCollectionWriter^ writer,
    Object^ graph,
    IEdmTypeReference^ collectionType,
    ODataSerializerContext^ writeContext
)
member WriteCollection : 
        writer:ODataCollectionWriter *
        graph:Object *
        collectionType:IEdmTypeReference *
        writeContext:ODataSerializerContext -> unit
Public Sub WriteCollection (
    writer As ODataCollectionWriter,
    graph As Object,
    collectionType As IEdmTypeReference,
    writeContext As ODataSerializerContext
)
Parameters
- writer 
 Type: Microsoft.Data.OData.ODataCollectionWriter- The ODataCollectionWriter to use. 
- graph 
 Type: System.Object- The collection to write. 
- collectionType 
 Type: Microsoft.Data.Edm.IEdmTypeReference- The EDM type of the collection. 
- writeContext 
 Type: System.Web.Http.OData.Formatter.Serialization.ODataSerializerContext- The serializer context. 
See Also
ODataCollectionSerializer Class
System.Web.Http.OData.Formatter.Serialization Namespace
Return to top