Class IdentityExtensions
Extensions for graph api contracts
Inherited Members
Namespace: Microsoft.Graph
Assembly: Microsoft.Graph.Communications.Core.dll
Syntax
public static class IdentityExtensions
Methods
GetApplicationInstance(IdentitySet)
Gets the application instance identity from identity set. This is part of additional data.
Declaration
public static Identity GetApplicationInstance(this IdentitySet identitySet)
Parameters
| Type | Name | Description |
|---|---|---|
| IdentitySet | identitySet | The identity set. |
Returns
| Type | Description |
|---|---|
| Identity | Identity |
GetEncrypted(IdentitySet)
Get the encrypted identity part of the additional data This identity must be retrieved when other identities are not listed
Declaration
public static Identity GetEncrypted(this IdentitySet identity)
Parameters
| Type | Name | Description |
|---|---|---|
| IdentitySet | identity | The identity |
Returns
| Type | Description |
|---|---|
| Identity | The encrypted identity |
GetGuest(IdentitySet)
Gets the guest identity from identity set. This is part of additional data.
Declaration
public static Identity GetGuest(this IdentitySet identitySet)
Parameters
| Type | Name | Description |
|---|---|---|
| IdentitySet | identitySet | The identity set. |
Returns
| Type | Description |
|---|---|
| Identity | Identity |
GetIdentityProvider(Identity)
Gets the identity provider.
Declaration
public static string GetIdentityProvider(this Identity identity)
Parameters
| Type | Name | Description |
|---|---|---|
| Identity | identity | The identity. |
Returns
| Type | Description |
|---|---|
| String | The identity provider string. |
GetOnPremises(IdentitySet)
Gets the on-premises identity from identity set. This is part of additional data.
Declaration
public static Identity GetOnPremises(this IdentitySet identitySet)
Parameters
| Type | Name | Description |
|---|---|---|
| IdentitySet | identitySet | The identity set. |
Returns
| Type | Description |
|---|---|
| Identity | Identity |
GetPhone(IdentitySet)
Gets the phone identity from identity set. This is part of additional data.
Declaration
public static Identity GetPhone(this IdentitySet identitySet)
Parameters
| Type | Name | Description |
|---|---|---|
| IdentitySet | identitySet | The identity set. |
Returns
| Type | Description |
|---|---|
| Identity | Identity |
GetTenantId(Identity)
Gets the tenant identifier.
Declaration
public static string GetTenantId(this Identity identity)
Parameters
| Type | Name | Description |
|---|---|---|
| Identity | identity | The identity. |
Returns
| Type | Description |
|---|---|
| String | The tenant identifier string. |
SetApplicationInstance(IdentitySet, Identity)
Sets the application instance identity in identity set. This is part of additional data.
Declaration
public static void SetApplicationInstance(this IdentitySet identitySet, Identity identity)
Parameters
| Type | Name | Description |
|---|---|---|
| IdentitySet | identitySet | The identity set. |
| Identity | identity | The identity. |
SetEncrypted(IdentitySet, Identity)
Sets the encrypted identity to the additional data This identity must be retrieved when other identities are not listed
Declaration
public static void SetEncrypted(this IdentitySet identitySet, Identity identity)
Parameters
| Type | Name | Description |
|---|---|---|
| IdentitySet | identitySet | The identity set. |
| Identity | identity | The identity |
SetGuest(IdentitySet, Identity)
Sets the guest identity in identity set. This is part of additional data.
Declaration
public static void SetGuest(this IdentitySet identitySet, Identity identity)
Parameters
| Type | Name | Description |
|---|---|---|
| IdentitySet | identitySet | The identity set. |
| Identity | identity | The identity. |
SetIdentityProvider(Identity, String)
Sets the identity provider.
Declaration
public static void SetIdentityProvider(this Identity identity, string identityProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| Identity | identity | The identity. |
| String | identityProvider | The identity provider. |
SetPhone(IdentitySet, Identity)
Sets the phone identity in identity set. This is part of additional data.
Declaration
public static void SetPhone(this IdentitySet identitySet, Identity identity)
Parameters
| Type | Name | Description |
|---|---|---|
| IdentitySet | identitySet | The identity set. |
| Identity | identity | The identity. |
SetTenantId(Identity, String)
Sets the tenant identifier.
Declaration
public static void SetTenantId(this Identity identity, string tenantId)
Parameters
| Type | Name | Description |
|---|---|---|
| Identity | identity | The identity. |
| String | tenantId | The tenant identifier. |