Share via


ODataUtils.GetReadFormat Method (ODataMessageReader)

 

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

Namespace:   Microsoft.OData.Core
Assembly:  Microsoft.OData.Core (in Microsoft.OData.Core.dll)

Syntax

public static ODataFormat GetReadFormat(
    ODataMessageReader messageReader
)
public:
static ODataFormat^ GetReadFormat(
    ODataMessageReader^ messageReader
)
static member GetReadFormat : 
        messageReader:ODataMessageReader -> ODataFormat
Public Shared Function GetReadFormat (
    messageReader As ODataMessageReader
) As ODataFormat

Parameters

Return Value

Type: Microsoft.OData.Core.ODataFormat

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, feeds, collections, etc.) has been created. If the method is called prior to that it will throw.

See Also

ODataUtils Class
Microsoft.OData.Core Namespace

Return to top