Show / Hide Table of Contents

    Class ODataConfiguration

    OData Configuration object to be used for different classes.

    Inheritance
    Object
    ODataConfiguration
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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.

    Extension Methods

    AdditionalDataExtensions.SetInAdditionalData(Object, String, Object)
    Extensions.Pin(Object)
    Extensions.ChangeType(Object, Type)
    Extensions.ChangeType<T>(Object)
    Extensions.TryDispose(Object, IGraphLogger)
    ReflectionUtils.GetPropertyUsingReflection(Object, String)
    ReflectionUtils.SetPropertyUsingReflection(Object, String, Object)
    Validator.IsNull(Object, String, String)
    Validator.NotNull<T>(T, String, String)
    Validator.Equals<T>(T, T, String, String)
    Validator.Equals<T, TE>(T, T, String)
    Validator.NotEquals<T>(T, T, String, String)
    Back to top Copyright (c) Microsoft Corporation. All rights reserved.