Share via


ODataPayloadValueConverter.ConvertToPayloadValue Method

Definition

Converts the given primitive value defined in a type definition from the payload object.

public virtual object ConvertToPayloadValue (object value, Microsoft.OData.Edm.IEdmTypeReference edmTypeReference);
abstract member ConvertToPayloadValue : obj * Microsoft.OData.Edm.IEdmTypeReference -> obj
override this.ConvertToPayloadValue : obj * Microsoft.OData.Edm.IEdmTypeReference -> obj
Public Overridable Function ConvertToPayloadValue (value As Object, edmTypeReference As IEdmTypeReference) As Object

Parameters

value
Object

The given CLR value.

edmTypeReference
IEdmTypeReference

The expected type reference from model.

Returns

The converted payload value of the underlying type.

Applies to