ODataFormat.DetectPayloadKind 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.
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)
- messageInfo
- ODataMessageInfo
The context information for the message.
- settings
- ODataMessageReaderSettings
Configuration settings of the OData reader.
The set of ODataPayloadKinds that are supported with the specified payload.
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.