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 | |
---|---|---|
ODataMessageReaderSettings() | Initializes a new instance of the ODataMessageReaderSettings class with default values. |
|
ODataMessageReaderSettings(ODataMessageReaderSettings) | Initializes a new instance of the ODataMessageReaderSettings class. |
Properties
Name | Description | |
---|---|---|
BaseUri | Gets or sets the document base URI. |
|
CheckCharacters | Gets or sets whether the reader should check for valid Xml characters.(Inherited from ODataMessageReaderSettingsBase.) |
|
DisableMessageStreamDisposal | Gets or sets a value that indicates whether the message stream will not be disposed after finishing writing with the message. |
|
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. |
|
EnableAtomMetadataReading | Gets or sets whether ATOM metadata is read in ATOM payloads.(Inherited from ODataMessageReaderSettingsBase.) |
|
EnableFullValidation | ||
MaxProtocolVersion | Gets or sets the maximum OData protocol version the reader should accept and understand. |
|
MediaTypeResolver | ||
MessageQuotas | Gets or sets the quotas to use for limiting resource consumption when reading an OData message.(Inherited from ODataMessageReaderSettingsBase.) |
|
PayloadBaseUri | ||
ShouldIncludeAnnotation | Gets or sets the function to evaluate whether an annotation should be read or skipped by the reader.(Inherited from ODataMessageReaderSettingsBase.) |
|
UndeclaredPropertyBehaviorKinds | Gets or sets the behavior the reader should use when it finds undeclared property. |
|
UseKeyAsSegment |
Methods
Name | Description | |
---|---|---|
EnableDefaultBehavior() | Enables the default behavior. |
|
EnableODataServerBehavior() | Specifies whether the OData server behavior is enabled. |
|
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. |
|
Equals(Object) | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
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