Share via


ODataResourceSetSerializer.CreateResourceSet Method

Definition

Create the ODataResourceSet to be written for the given resourceSet instance.

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

Parameters

resourceSetInstance
IEnumerable

The instance representing the resourceSet being written.

resourceSetType
IEdmCollectionTypeReference

The EDM type of the resourceSet being written.

writeContext
ODataSerializerContext

The serializer context.

Returns

The created ODataResourceSet object.

Applies to