Show / Hide Table of Contents

    Class AdditionalDataExtensions

    The identity set extensions

    Inheritance
    Object
    AdditionalDataExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.Graph
    Assembly: Microsoft.Graph.Communications.Common.dll
    Syntax
    public static class AdditionalDataExtensions

    Methods

    GetValue<T>(IDictionary<String, Object>, String, T)

    Gets the object using the key from additional data.

    Declaration
    public static T GetValue<T>(this IDictionary<string, object> additionalData, string key, T default = null)
    Parameters
    Type Name Description
    IDictionary<String, Object> additionalData

    The additional data.

    String key

    The key.

    T default

    The default value if value could not be parsed.

    Returns
    Type Description
    T

    /// The converted value.

    Type Parameters
    Name Description
    T

    The expected type for the specified key.

    SetInAdditionalData(Object, String, Object)

    Sets the object with given key in additional data.

    Declaration
    public static void SetInAdditionalData(this object obj, string key, object value)
    Parameters
    Type Name Description
    Object obj

    The identity.

    String key

    The key.

    Object value

    The value.

    Back to top Copyright (c) Microsoft Corporation. All rights reserved.