Jaa


ODataUtils.GetReadFormat(ODataMessageReader) Method

Definition

Returns the format used by the message reader for reading the payload.

public static Microsoft.OData.ODataFormat GetReadFormat (Microsoft.OData.ODataMessageReader messageReader);
static member GetReadFormat : Microsoft.OData.ODataMessageReader -> Microsoft.OData.ODataFormat
Public Function GetReadFormat (messageReader As ODataMessageReader) As ODataFormat

Parameters

messageReader
ODataMessageReader

The ODataMessageReader to get the read format from.

Returns

The format used by the messageReader for reading the payload.

Remarks

This method must only be called once reading has started. This means that a read method has been called on the messageReader or that a reader (for entries, resource sets, collections, etc.) has been created. If the method is called prior to that it will throw.

Applies to