ToastNotification.Tag Property

Definition

Gets or sets the unique identifier of this notification within the notification Group.

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 = toastNotification.tag;
toastNotification.tag = string;
Public Property Tag As String

Property Value

String

Platform::String

winrt::hstring

Gets or sets the unique identifier of this notification within the notification Group.

Remarks

This API returns an exception if the property is set to null or the empty string.

The tag can be maximum 16 characters long. However, the Creators Update (15063) extends this limit to 64 characters.

Applies to