Share via


ScheduledTileNotification.Tag Property

Definition

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

public:
 property Platform::String ^ Tag { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring Tag();

void Tag(winrt::hstring value);
public string Tag { get; set; }
var string = scheduledTileNotification.tag;
scheduledTileNotification.tag = string;
Public Property Tag As String

Property Value

String

Platform::String

winrt::hstring

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.

Applies to

See also