GetFormat Method

Determines and returns the format of the payload being read by this reader.

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

Syntax

'Declaration
Public Function GetFormat As ODataFormat
'Usage
Dim instance As ODataMessageReader
Dim returnValue As ODataFormat

returnValue = instance.GetFormat()
public ODataFormat GetFormat()
public:
ODataFormat GetFormat()
member GetFormat : unit -> ODataFormat 
public function GetFormat() : ODataFormat

Return Value

Type: Microsoft.Data.OData..::..ODataFormat
The format of the payload being read by this reader.

Remarks

The format of the payload is determined by looking at the content type header of the message. If the format cannot be derived from the content type header the method will fail.

See Also

Reference

ODataMessageReader Class

Microsoft.Data.OData Namespace