Share via


ODataCollectionSerializer.CreateODataCollectionValue Method

Definition

Creates an ODataCollectionValue for the enumerable represented by enumerable.

public virtual Microsoft.OData.ODataCollectionValue CreateODataCollectionValue (System.Collections.IEnumerable enumerable, Microsoft.OData.Edm.IEdmTypeReference elementType, Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext writeContext);
abstract member CreateODataCollectionValue : System.Collections.IEnumerable * Microsoft.OData.Edm.IEdmTypeReference * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> Microsoft.OData.ODataCollectionValue
override this.CreateODataCollectionValue : System.Collections.IEnumerable * Microsoft.OData.Edm.IEdmTypeReference * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> Microsoft.OData.ODataCollectionValue
Public Overridable Function CreateODataCollectionValue (enumerable As IEnumerable, elementType As IEdmTypeReference, writeContext As ODataSerializerContext) As ODataCollectionValue

Parameters

enumerable
IEnumerable

The value of the collection to be created.

elementType
IEdmTypeReference

The element EDM type of the collection.

writeContext
ODataSerializerContext

The serializer context to be used while creating the collection.

Returns

The created ODataCollectionValue.

Applies to