ODataEdmTypeSerializer.CreateODataValue Method
Creates an ODataValue for the object represented by graph.
Namespace: System.Web.Http.OData.Formatter.Serialization
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Overridable Function CreateODataValue ( _
graph As Object, _
expectedType As IEdmTypeReference, _
writeContext As ODataSerializerContext _
) As ODataValue
'Usage
Dim instance As ODataEdmTypeSerializer
Dim graph As Object
Dim expectedType As IEdmTypeReference
Dim writeContext As ODataSerializerContext
Dim returnValue As ODataValue
returnValue = instance.CreateODataValue(graph, _
expectedType, writeContext)
public virtual ODataValue CreateODataValue(
Object graph,
IEdmTypeReference expectedType,
ODataSerializerContext writeContext
)
public:
virtual ODataValue^ CreateODataValue(
Object^ graph,
IEdmTypeReference^ expectedType,
ODataSerializerContext^ writeContext
)
abstract CreateODataValue :
graph:Object *
expectedType:IEdmTypeReference *
writeContext:ODataSerializerContext -> ODataValue
override CreateODataValue :
graph:Object *
expectedType:IEdmTypeReference *
writeContext:ODataSerializerContext -> ODataValue
public function CreateODataValue(
graph : Object,
expectedType : IEdmTypeReference,
writeContext : ODataSerializerContext
) : ODataValue
Parameters
- graph
Type: System.Object
The value of the ODataValue to be created.
- expectedType
Type: IEdmTypeReference
The type to create.
- writeContext
Type: System.Web.Http.OData.Formatter.Serialization.ODataSerializerContext
The ODataSerializerContext.
Return Value
Type: ODataValue
The ODataValue created.