ODataEnumSerializer.CreateODataEnumValue 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 ODataEnumValue for the object represented by graph
.
public virtual Microsoft.OData.ODataEnumValue CreateODataEnumValue (object graph, Microsoft.OData.Edm.IEdmEnumTypeReference enumType, Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext writeContext);
abstract member CreateODataEnumValue : obj * Microsoft.OData.Edm.IEdmEnumTypeReference * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> Microsoft.OData.ODataEnumValue
override this.CreateODataEnumValue : obj * Microsoft.OData.Edm.IEdmEnumTypeReference * Microsoft.AspNet.OData.Formatter.Serialization.ODataSerializerContext -> Microsoft.OData.ODataEnumValue
Public Overridable Function CreateODataEnumValue (graph As Object, enumType As IEdmEnumTypeReference, writeContext As ODataSerializerContext) As ODataEnumValue
Parameters
- graph
- Object
The enum value.
- enumType
- IEdmEnumTypeReference
The EDM enum type of the value.
- writeContext
- ODataSerializerContext
The serializer write context.
Returns
The created ODataEnumValue.