ToastNotification.ExpiresOnReboot Property

Definition

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

public:
 property bool ExpiresOnReboot { bool get(); void set(bool value); };
bool ExpiresOnReboot();

void ExpiresOnReboot(bool value);
public bool ExpiresOnReboot { get; set; }
var boolean = toastNotification.expiresOnReboot;
toastNotification.expiresOnReboot = boolean;
Public Property ExpiresOnReboot As Boolean

Property Value

Boolean

bool

If true, notification will expire when the computer is rebooted.

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Applies to