ODataMessageReaderSettings.DisablePrimitiveTypeConversion Property
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.
Namespace: Microsoft.OData.Core
Assembly: Microsoft.OData.Core (in Microsoft.OData.Core.dll)
Syntax
public bool DisablePrimitiveTypeConversion {
[CompilerGeneratedAttribute]
get;
[CompilerGeneratedAttribute]
set;
}
public:
property bool DisablePrimitiveTypeConversion {
[CompilerGeneratedAttribute]
bool get();
[CompilerGeneratedAttribute]
void set(bool value);
}
member DisablePrimitiveTypeConversion : bool with get, set
Public Property DisablePrimitiveTypeConversion As Boolean
Property Value
Type: System.Boolean
true if primitive values and report values are not converted; false if all primitive values are converted to the type specified in the model or provided as an expected type. The default value is false.
Remarks
Note that values will still be converted to the type specified in the payload itself.
See Also
ODataMessageReaderSettings Class
Microsoft.OData.Core Namespace
Return to top