ScheduledTileNotification.Tag | tag property

Applies to Windows and Windows Phone

Gets or sets a string that Windows can use to prevent duplicate notification content from appearing in the queue.

Syntax


var tag = scheduledTileNotification.tag;
scheduledTileNotification.tag = tag;

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

A string of 16 characters or less (plus a terminating null character) that identifies the notification in the stack. While there is no set form for the string content, we recommend that it should relate to the content of the notification.

Remarks

ScheduledTileNotification.tag and ScheduledTileNotification.id serve similar purposes:

  • The ScheduledTileNotification.tag property is used by Windows to prevent duplicate notification content from appearing in the queue at the same time. It allows the notification to be updated in-place in the queue to prevent it from containing out-of-date information.
  • The ScheduledTileNotification.id property identifies the notification in the schedule. This allows the notification to be identified or removed from the schedule.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.UI.Notifications
Windows::UI::Notifications [C++]

Metadata

Windows.winmd

See also

ScheduledTileNotification
Scheduled notifications sample
Guidelines and checklist for scheduled notifications

 

 

Show:
© 2014 Microsoft