Jaa


ODataFormat.DetectPayloadKind Method

Definition

Detects the payload kinds supported by this format for the specified message payload.

public abstract System.Collections.Generic.IEnumerable<Microsoft.OData.ODataPayloadKind> DetectPayloadKind (Microsoft.OData.ODataMessageInfo messageInfo, Microsoft.OData.ODataMessageReaderSettings settings);
abstract member DetectPayloadKind : Microsoft.OData.ODataMessageInfo * Microsoft.OData.ODataMessageReaderSettings -> seq<Microsoft.OData.ODataPayloadKind>
Public MustOverride Function DetectPayloadKind (messageInfo As ODataMessageInfo, settings As ODataMessageReaderSettings) As IEnumerable(Of ODataPayloadKind)

Parameters

messageInfo
ODataMessageInfo

The context information for the message.

settings
ODataMessageReaderSettings

Configuration settings of the OData reader.

Returns

The set of ODataPayloadKinds that are supported with the specified payload.

Remarks

The stream returned by GetMessageStream of messageInfo could be used for reading for payload kind detection. Reading this stream won't affect later reading operations of payload processing.

Applies to