ODataCollectionSerializer.CreateODataValue 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 ODataValue for the object represented by graph
.
public override sealed Microsoft.OData.ODataValue CreateODataValue (object graph, Microsoft.OData.Edm.IEdmTypeReference expectedType, Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext writeContext);
override this.CreateODataValue : obj * Microsoft.OData.Edm.IEdmTypeReference * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> Microsoft.OData.ODataValue
Public Overrides NotOverridable Function CreateODataValue (graph As Object, expectedType As IEdmTypeReference, writeContext As ODataSerializerContext) As ODataValue
Parameters
- graph
- Object
The value of the ODataValue to be created.
- expectedType
- IEdmTypeReference
The expected EDM type of the object represented by graph
.
- writeContext
- ODataSerializerContext
Returns
The ODataValue created.