Jaa


ODataMessageReaderSettings Class

Definition

Configuration settings for OData message readers.

public sealed class ODataMessageReaderSettings
type ODataMessageReaderSettings = class
Public NotInheritable Class ODataMessageReaderSettings
Inheritance
ODataMessageReaderSettings

Constructors

ODataMessageReaderSettings()

Initializes a new instance of the ODataMessageReaderSettings class with default values for OData 4.0.

ODataMessageReaderSettings(ODataVersion)

Initializes a new instance of the ODataMessageReaderSettings class with default values for the specified OData version.

Properties

ArrayPool

Get/sets the character buffer pool.

BaseUri

Gets or sets the document base URI (used as base for all relative URIs). If this is set, it must be an absolute URI. ODataMessageReaderSettings.BaseUri may be deprecated in the future, please use ODataMessageReaderSettings.baseUri instead.

ClientCustomTypeResolver

Gets or sets custom type resolver used by the Client.

EnableCharactersCheck

Flag to control whether the reader should check for valid Xml characters or not.

EnableMessageStreamDisposal

Gets or sets a value that indicates whether the message stream will be disposed after finishing writing with the message.

EnablePrimitiveTypeConversion

Gets or sets a value that indicates whether to convert all primitive values to the type specified in the model or provided as an expected type. Note that values will still be converted to the type specified in the payload itself.

LibraryCompatibility

Gets or sets library compatibility version. Default value is Latest,

MaxProtocolVersion

Gets or sets the maximum OData protocol version the reader should accept and understand.

MessageQuotas

Quotas to use for limiting resource consumption when reading an OData message.

PrimitiveTypeResolver

Gets or sets a custom resolver for resolving untyped primitive values

ReadAsStreamFunc

Func to evaluate whether a property should be read as a stream. Note that IEdmProperty may be null when reading within a collection

ReadUntypedAsString

Whether to read untyped values as a raw string.

ShouldIncludeAnnotation

Func to evaluate whether an annotation should be read or skipped by the reader. The func should return true if the annotation should be read and false if the annotation should be skipped. A null value indicates that all annotations should be skipped.

Validations

Gets or sets validation settings.

Version

Gets or sets the OData protocol version to be used for reading payloads.

Methods

Clone()

Creates a shallow copy of this ODataMessageReaderSettings.

Applies to