Class AdditionalDataExtensions
The identity set extensions
Inherited Members
Namespace: Microsoft.Graph
Assembly: Microsoft.Graph.Communications.Common.dll
Syntax
public static class AdditionalDataExtensionsMethods
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. |