Compartir a través de


ODataResourceSetSerializer.CreateResourceSet Método

Definición

Cree el objeto ODataResourceSet que se va a escribir para la instancia de resourceSet determinada.

public virtual Microsoft.OData.ODataResourceSet CreateResourceSet (System.Collections.IEnumerable resourceSetInstance, Microsoft.OData.Edm.IEdmCollectionTypeReference resourceSetType, Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext writeContext);
abstract member CreateResourceSet : System.Collections.IEnumerable * Microsoft.OData.Edm.IEdmCollectionTypeReference * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> Microsoft.OData.ODataResourceSet
override this.CreateResourceSet : System.Collections.IEnumerable * Microsoft.OData.Edm.IEdmCollectionTypeReference * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> Microsoft.OData.ODataResourceSet
Public Overridable Function CreateResourceSet (resourceSetInstance As IEnumerable, resourceSetType As IEdmCollectionTypeReference, writeContext As ODataSerializerContext) As ODataResourceSet

Parámetros

resourceSetInstance
IEnumerable

Instancia que representa el resourceSet que se está escribiendo.

resourceSetType
IEdmCollectionTypeReference

Tipo EDM del resourceSet que se está escribiendo.

writeContext
ODataSerializerContext

El contexto del serializador.

Devoluciones

Objeto ODataResourceSet creado.

Se aplica a