Class ODataConfiguration
OData Configuration object to be used for different classes.
Inherited Members
Namespace: Microsoft.Graph.Communications.Common.OData
Assembly: Microsoft.Graph.Communications.Common.dll
Syntax
public class ODataConfiguration
Constructors
ODataConfiguration(Boolean, Assembly[])
Initializes a new instance of the ODataConfiguration class.
Declaration
public ODataConfiguration(bool addOdataType, params Assembly[] odataAssemblies)
Parameters
Type | Name | Description |
---|---|---|
Boolean | addOdataType | If true, attach the @odata.type property, otherwise only attach this property if it's already present as a first class property. |
Assembly[] | odataAssemblies | The OData assemblies. |
Properties
JsonSerializerSettingsForOData
Gets json serializer settings for OData.
Declaration
public JsonSerializerSettings JsonSerializerSettingsForOData { get; }
Property Value
Type | Description |
---|---|
Newtonsoft.Json.JsonSerializerSettings | Newtonsoft.Json.JsonSerializerSettings for serializing/deserializing OData objects. |
Methods
FillODataJsonSerializerSettings(Boolean, JsonSerializerSettings)
Fills the json serializer settings.
Declaration
public JsonSerializerSettings FillODataJsonSerializerSettings(bool addOdataType, JsonSerializerSettings settings)
Parameters
Type | Name | Description |
---|---|---|
Boolean | addOdataType | If true, attach the @odata.type property to each object, otherwise only attach this property if it's already present. |
Newtonsoft.Json.JsonSerializerSettings | settings | The settings. |
Returns
Type | Description |
---|---|
Newtonsoft.Json.JsonSerializerSettings | Serialization settings. |