UserNotification.ContentImage
-----------------------------

Queries image shown in the content of the notification.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [UserNotification](component_UserNotification.md) | [3.5](newinversion35.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "UserNotification.ContentImage"; UserNotificationReference { ; ImageType; FileName } ) 

**MBS**( **"UserNotification.ContentImage";** /\* Queries image shown in the content of the notification. \*/  
**$UserNotificationReference**; /\* An user notification reference.e.g. $ref \*/   
**$ImageType**; /\* Optional; The type of image to return.   
Either JPEG, PNG, GIF or BMP. Default is JPEG.e.g. "JPEG" \*/   
**$FileName**) /\* Optional; The filename to use for the picture.   
Default is "image" with the extension matching the image type.e.g. "test.jpg" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| UserNotificationReference | An user notification reference. | $ref |  |
| ImageType | The type of image to return.    Either JPEG, PNG, GIF or BMP. Default is JPEG. | "JPEG" | Optional |
| FileName | The filename to use for the picture.    Default is "image" with the extension matching the image type. | "test.jpg" | Optional |

### Result

Returns image or error.

### Description

Queries image shown in the content of the notification.  
Requires macOS 10.9.  
### See also

- [UserNotification.SetContentImage](UserNotificationSetContentImage.md)

This function is free to use.

Created 18th August 2014 , last changed 29th September 2020

  
[UserNotification.ClearDidDeliverNotificationScript](UserNotificationClearDidDeliverNotificationScript.md) - [UserNotification.Create](UserNotificationCreate.md)

[HTML Version](UserNotificationContentImage.shtml)