Compartir a través de


ODataCollectionSerializer.WriteCollectionAsync Método

Definición

Escribe el objeto especificado graph mediante el especificado writer.

public System.Threading.Tasks.Task WriteCollectionAsync (Microsoft.OData.ODataCollectionWriter writer, object graph, Microsoft.OData.Edm.IEdmTypeReference collectionType, Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext writeContext);
member this.WriteCollectionAsync : Microsoft.OData.ODataCollectionWriter * obj * Microsoft.OData.Edm.IEdmTypeReference * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> System.Threading.Tasks.Task
Public Function WriteCollectionAsync (writer As ODataCollectionWriter, graph As Object, collectionType As IEdmTypeReference, writeContext As ODataSerializerContext) As Task

Parámetros

writer
ODataCollectionWriter

Objeto ODataCollectionWriter que se va a usar.

graph
Object

Colección que se escribirá.

collectionType
IEdmTypeReference

Tipo EDM de la colección.

writeContext
ODataSerializerContext

El contexto del serializador.

Devoluciones

Se aplica a