ODataEnumSerializer.CreateODataEnumValue Method (Object, IEdmEnumTypeReference, ODataSerializerContext)
Creates an ODataEnumValue for the object represented by graph.
Namespace: System.Web.OData.Formatter.Serialization
Assembly: System.Web.OData (in System.Web.OData.dll)
Syntax
public virtual ODataEnumValue CreateODataEnumValue(
object graph,
IEdmEnumTypeReference enumType,
ODataSerializerContext writeContext
)
public:
virtual ODataEnumValue^ CreateODataEnumValue(
Object^ graph,
IEdmEnumTypeReference^ enumType,
ODataSerializerContext^ writeContext
)
abstract CreateODataEnumValue :
graph:Object *
enumType:IEdmEnumTypeReference *
writeContext:ODataSerializerContext -> ODataEnumValue
override CreateODataEnumValue :
graph:Object *
enumType:IEdmEnumTypeReference *
writeContext:ODataSerializerContext -> ODataEnumValue
Public Overridable Function CreateODataEnumValue (
graph As Object,
enumType As IEdmEnumTypeReference,
writeContext As ODataSerializerContext
) As ODataEnumValue
Parameters
graph
Type: System.ObjectThe enum value.
enumType
Type: Microsoft.OData.Edm.IEdmEnumTypeReferenceThe EDM enum type of the value.
writeContext
Type: System.Web.OData.Formatter.Serialization.ODataSerializerContextThe serializer write context.
Return Value
Type: Microsoft.OData.Core.ODataEnumValue
The created ODataEnumValue.
See Also
ODataEnumSerializer Class
System.Web.OData.Formatter.Serialization Namespace
Return to top