ODataResourceSetSerializer.CreateResourceSet 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.
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.