ODataComplexTypeSerializer.CreateODataComplexValue Method (Object, IEdmComplexTypeReference, ODataSerializerContext)
Creates an ODataComplexValue for the object represented by graph.
Namespace: System.Web.OData.Formatter.Serialization
Assembly: System.Web.OData (in System.Web.OData.dll)
Syntax
public virtual ODataComplexValue CreateODataComplexValue(
object graph,
IEdmComplexTypeReference complexType,
ODataSerializerContext writeContext
)
public:
virtual ODataComplexValue^ CreateODataComplexValue(
Object^ graph,
IEdmComplexTypeReference^ complexType,
ODataSerializerContext^ writeContext
)
abstract CreateODataComplexValue :
graph:Object *
complexType:IEdmComplexTypeReference *
writeContext:ODataSerializerContext -> ODataComplexValue
override CreateODataComplexValue :
graph:Object *
complexType:IEdmComplexTypeReference *
writeContext:ODataSerializerContext -> ODataComplexValue
Public Overridable Function CreateODataComplexValue (
graph As Object,
complexType As IEdmComplexTypeReference,
writeContext As ODataSerializerContext
) As ODataComplexValue
Parameters
graph
Type: System.ObjectThe value of the ODataComplexValue to be created.
complexType
Type: Microsoft.OData.Edm.IEdmComplexTypeReferenceThe EDM complex type of the object.
writeContext
Type: System.Web.OData.Formatter.Serialization.ODataSerializerContextThe serializer context.
Return Value
Type: Microsoft.OData.Core.ODataComplexValue
The created ODataComplexValue.
See Also
ODataComplexTypeSerializer Class
System.Web.OData.Formatter.Serialization Namespace
Return to top