Class NotificationsExtensions
Communications notifications extensions.
Inherited Members
Namespace: Microsoft.Graph
Assembly: Microsoft.Graph.Communications.Core.dll
Syntax
public static class NotificationsExtensions
Methods
GetResourceData(CommsNotification)
Gets the resource data.
Declaration
public static object GetResourceData(this CommsNotification notification)
Parameters
Type | Name | Description |
---|---|---|
CommsNotification | notification | The notification. |
Returns
Type | Description |
---|---|
Object | The resource data object for the specified notification. |
GetResourceData<T>(CommsNotification)
Gets the resource data.
Declaration
public static T GetResourceData<T>(this CommsNotification notification)
Parameters
Type | Name | Description |
---|---|---|
CommsNotification | notification | The notification. |
Returns
Type | Description |
---|---|
T | The resource data |
Type Parameters
Name | Description |
---|---|
T | The expected resource data type. |
SetResourceData(CommsNotification, Object)
Sets the resource data.
Declaration
public static void SetResourceData(this CommsNotification notification, object data)
Parameters
Type | Name | Description |
---|---|---|
CommsNotification | notification | The notification. |
Object | data | The data. |