Dela via


NotificationSetting Enum

Definition

Specifies the limitations on tile or toast notification display.

public enum class NotificationSetting
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class NotificationSetting
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum NotificationSetting
var value = Windows.UI.Notifications.NotificationSetting.enabled
Public Enum NotificationSetting
Inheritance
NotificationSetting
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Enabled 0

All notifications raised by this app can be displayed.

DisabledForApplication 1

The user has disabled notifications for this app.

DisabledForUser 2

The user or administrator has disabled all notifications for this user on this computer.

DisabledByGroupPolicy 3

An administrator has disabled all notifications on this computer through group policy. The group policy setting overrides the user's setting.

DisabledByManifest 4

This app has not declared itself toast capable in its package.appxmanifest file. This setting is found on the manifest's Application UI page, under the Notification section. For an app to send toast, the Toast Capable option must be set to "Yes".

Applies to

See also