ODataMessageReaderSettings Class

 

Represents the configuration settings for OData message readers.

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

Inheritance Hierarchy

System.Object
  Microsoft.OData.Core.ODataMessageReaderSettingsBase
    Microsoft.OData.Core.ODataMessageReaderSettings

Syntax

public sealed class ODataMessageReaderSettings : ODataMessageReaderSettingsBase
public ref class ODataMessageReaderSettings sealed : ODataMessageReaderSettingsBase
[<Sealed>]
type ODataMessageReaderSettings = 
    class
        inherit ODataMessageReaderSettingsBase
    end
Public NotInheritable Class ODataMessageReaderSettings
    Inherits ODataMessageReaderSettingsBase

Constructors

Name Description
System_CAPS_pubmethod ODataMessageReaderSettings()

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

System_CAPS_pubmethod ODataMessageReaderSettings(ODataMessageReaderSettings)

Initializes a new instance of the ODataMessageReaderSettings class.

Properties

Name Description
System_CAPS_pubproperty BaseUri

Gets or sets the document base URI.

System_CAPS_pubproperty CheckCharacters

Gets or sets whether the reader should check for valid Xml characters.(Inherited from ODataMessageReaderSettingsBase.)

System_CAPS_pubproperty DisableMessageStreamDisposal

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

System_CAPS_pubproperty DisablePrimitiveTypeConversion

Gets or sets a value that indicates whether not to convert all primitive values to the type specified in the model or provided as an expected type.

System_CAPS_pubproperty EnableAtomMetadataReading

Gets or sets whether ATOM metadata is read in ATOM payloads.(Inherited from ODataMessageReaderSettingsBase.)

System_CAPS_pubproperty EnableFullValidation

System_CAPS_pubproperty MaxProtocolVersion

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

System_CAPS_pubproperty MediaTypeResolver

System_CAPS_pubproperty MessageQuotas

Gets or sets the quotas to use for limiting resource consumption when reading an OData message.(Inherited from ODataMessageReaderSettingsBase.)

System_CAPS_pubproperty PayloadBaseUri

System_CAPS_pubproperty ShouldIncludeAnnotation

Gets or sets the function to evaluate whether an annotation should be read or skipped by the reader.(Inherited from ODataMessageReaderSettingsBase.)

System_CAPS_pubproperty UndeclaredPropertyBehaviorKinds

Gets or sets the behavior the reader should use when it finds undeclared property.

System_CAPS_pubproperty UseKeyAsSegment

Methods

Name Description
System_CAPS_pubmethod EnableDefaultBehavior()

Enables the default behavior.

System_CAPS_pubmethod EnableODataServerBehavior()

Specifies whether the OData server behavior is enabled.

System_CAPS_pubmethod EnableWcfDataServicesClientBehavior(Func<IEdmType, String, IEdmType>)

Enables the same behavior that the WCF Data Services client has. Also, lets the user set the values for custom data namespace and type scheme.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.OData.Core Namespace

Return to top