ODataPayloadValueConverter.ConvertToPayloadValue Method
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.
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
- value
- Object
The given CLR value.
- edmTypeReference
- IEdmTypeReference
The expected type reference from model.
The converted payload value of the underlying type.