Share via


ODataMessageReaderSettings Class

Represents the configuration settings for OData message readers.

Inheritance Hierarchy

System.Object
  Microsoft.Data.OData.ODataMessageReaderSettingsBase
    Microsoft.Data.OData.ODataMessageReaderSettings

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

Syntax

'Declaration
Public NotInheritable Class ODataMessageReaderSettings _
    Inherits ODataMessageReaderSettingsBase
'Usage
Dim instance As ODataMessageReaderSettings
public sealed class ODataMessageReaderSettings : ODataMessageReaderSettingsBase
public ref class ODataMessageReaderSettings sealed : public ODataMessageReaderSettingsBase
[<SealedAttribute>]
type ODataMessageReaderSettings =  
    class 
        inherit ODataMessageReaderSettingsBase 
    end
public final class ODataMessageReaderSettings extends ODataMessageReaderSettingsBase

The ODataMessageReaderSettings type exposes the following members.

Constructors

  Name Description
Public method ODataMessageReaderSettings() Initializes a new instance of the ODataMessageReaderSettings class with default values.
Public method ODataMessageReaderSettings(ODataMessageReaderSettings) Initializes a new instance of the ODataMessageReaderSettings class.

Top

Properties

  Name Description
Public property 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.
Public property CheckCharacters Gets or sets whether the reader should check for valid Xml characters or not. (Inherited from ODataMessageReaderSettingsBase.)
Public property DisableMessageStreamDisposal Gets or sets a value that indicates whether the message stream will not be disposed after finishing writing with the message.
Public property DisablePrimitiveTypeConversion Gets or sets a value that indicates whether not to convert all primitive values to the type specified in the payload.
Public property EnableAtomMetadataReading Gets or sets whether ATOM metadata is read in ATOM payloads. (Inherited from ODataMessageReaderSettingsBase.)
Public property MaxProtocolVersion Gets or sets the maximum OData protocol version the reader should accept and understand.
Public property MessageQuotas Gets or sets the quotas to use for limiting resource consumption when reading an OData message. (Inherited from ODataMessageReaderSettingsBase.)
Public property ShouldIncludeAnnotation Gets or sets whether an annotation should be read or skipped by the reader. (Inherited from ODataMessageReaderSettingsBase.)
Public property UndeclaredPropertyBehaviorKinds Gets or sets the behavior the reader should use when it finds undeclared property.

Top

Methods

  Name Description
Public method EnableDefaultBehavior Enables the default behavior.
Public method EnableWcfDataServicesClientBehavior(Func<IEdmType, String, IEdmType>, String, String, Func<ODataEntry, XmlReader, Uri, XmlReader>) Enables the WCF data services client behavior.
Public method EnableWcfDataServicesClientBehavior(Func<IEdmType, String, IEdmType>, String, String, Func<ODataEntry, XmlReader, Uri, XmlReader>, Func<IEdmEntityType, Boolean>) Obsolete. Enables the WCF data services client behavior.
Public method EnableWcfDataServicesServerBehavior Specifies whether the WCF data services server behavior is enabled.
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method SetAtomEntryXmlCustomizationCallback Sets the atom entry XML customization callback.
Public method ToString (Inherited from Object.)

Top

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

Reference

Microsoft.Data.OData Namespace