WindowsUserNotification.SetExpiresOnReboot
------------------------------------------

Sets whether the toast notification will remain in the Notification Center after a reboot.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WindowsUserNotification](component_WindowsUserNotification.md) | [13.1](newinversion131.md) | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "WindowsUserNotification.SetExpiresOnReboot"; Notification; Value ) 

**MBS**( **"WindowsUserNotification.SetExpiresOnReboot";** /\* Sets whether the toast notification will remain in the Notification Center after a reboot. \*/  
**$Notification**; /\* The reference number for the Windows User Notification. \*/   
**$Value**) /\* The new setting.  
1 to expire on debug, 0 if not.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Notification | The reference number for the Windows User Notification. | $Notification |
| Value | The new setting.   1 to expire on debug, 0 if not. | 0 |

### Result

Returns OK or error.

### Description

Sets whether the toast notification will remain in the Notification Center after a reboot.  
If 1, notification will expire when the computer is rebooted.  
Requires Windows 10, version 1903 (introduced in 10.0.18362.0)  
  
Value is -1 to take Windows’ default setting.  
### Examples

Set notification to expire on reboot:

 Set Variable \[ $r ; Value: MBS ( "WindowsUserNotification.SetExpiresOnReboot"; $Notification ; 1 ) \]  
### See also

- [WindowsUserNotification.GetExpiresOnReboot](WindowsUserNotificationGetExpiresOnReboot.md)
- [WindowsUserNotification.SetSuppressPopup](WindowsUserNotificationSetSuppressPopup.md)

### Release notes

- **Version 13.1**
    - Added [WindowsUserNotification.SetExpiresOnReboot](https://www.mbsplugins.eu/WindowsUserNotificationSetExpiresOnReboot.shtml) and [WindowsUserNotification.GetExpiresOnReboot](https://www.mbsplugins.eu/WindowsUserNotificationGetExpiresOnReboot.shtml) functions.
    - Added [WindowsUserNotification.SetExpiresOnReboot](https://www.mbsplugins.eu/WindowsUserNotificationSetExpiresOnReboot.shtml) and [WindowsUserNotification.GetExpiresOnReboot](https://www.mbsplugins.eu/WindowsUserNotificationGetExpiresOnReboot.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin 13.1](https://www.mbsplugins.de/archive/2023-03-15/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.1pr1](https://www.mbsplugins.de/archive/2023-02-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 21st January 2023 , last changed 20th May 2025

  
[WindowsUserNotification.ReleaseAll](WindowsUserNotificationReleaseAll.md) - [WindowsUserNotification.SetFileName](WindowsUserNotificationSetFileName.md)

[HTML Version](WindowsUserNotificationSetExpiresOnReboot.shtml)