ODataCollectionSerializer.CreateODataCollectionValue 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.
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.