Class GraphModelExtensions
The identity set extensions
Inheritance
System.Object
GraphModelExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.Graph
Assembly: Microsoft.Graph.StatefulClient.dll
Syntax
public static class GraphModelExtensions
Methods
View SourceGetEncrypted(IdentitySet)
Gets the encrypted identity.
Declaration
public static Identity GetEncrypted(this IdentitySet identitySet)
Parameters
Type | Name | Description |
---|---|---|
IdentitySet | identitySet | The identity set. |
Returns
Type | Description |
---|---|
Identity | The encrypted Identity. |
GetPrimaryIdentity(IdentitySet)
Gets the primary identity from the specified IdentitySet. The priority order is 1)User, 2)ApplicationInstance 3)Application, 4)Phone, 5) Encrypted
Declaration
public static Identity GetPrimaryIdentity(this IdentitySet identitySet)
Parameters
Type | Name | Description |
---|---|---|
IdentitySet | identitySet | The identity set. |
Returns
Type | Description |
---|---|
Identity | Returns the primary identity |
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 |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | additionalData | The additional data. |
System.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. |
SetEncrypted(IdentitySet, Identity)
Sets the encrypted identity.
Declaration
public static void SetEncrypted(this IdentitySet identitySet, Identity identity)
Parameters
Type | Name | Description |
---|---|---|
IdentitySet | identitySet | The identity set. |
Identity | identity | The encrypted identity. |
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 |
---|---|---|
System.Object | obj | The identity. |
System.String | key | The key. |
System.Object | value | The value. |