ODataMessageReaderSettings.DisablePrimitiveTypeConversion Property

Gets or sets a value that indicates whether not to convert all primitive values to the type specified in the payload.

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

Syntax

'Declaration
Public Property DisablePrimitiveTypeConversion As Boolean 
    Get 
    Set
'Usage
Dim instance As ODataMessageReaderSettings 
Dim value As Boolean 

value = instance.DisablePrimitiveTypeConversion

instance.DisablePrimitiveTypeConversion = value
public bool DisablePrimitiveTypeConversion { get; set; }
public:
property bool DisablePrimitiveTypeConversion {
    bool get ();
    void set (bool value);
}
member DisablePrimitiveTypeConversion : bool with get, set
function get DisablePrimitiveTypeConversion () : boolean 
function set DisablePrimitiveTypeConversion (value : 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 payload. The default value is false.

See Also

Reference

ODataMessageReaderSettings Class

Microsoft.Data.OData Namespace