Share via


ScheduledTileNotification.Tag 屬性

定義

取得或設定 Windows 可用來防止重複通知內容出現在佇列中的字串。

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

屬性值

String

Platform::String

winrt::hstring

字串 16 個字元或更少 (加上可識別堆疊中通知的終止 null 字元) 。 雖然字串內容沒有設定的格式,但建議它應該與通知的內容相關。

備註

ScheduledTileNotification.tag 和 ScheduledTileNotification.id 用途類似:

  • Windows 會使用 ScheduledTileNotification.tag 屬性來防止重複的通知內容同時出現在佇列中。 它允許在佇列中就地更新通知,以防止它包含過期的資訊。
  • ScheduledTileNotification.id屬性會識別排程中的通知。 這可讓通知從排程中識別或移除。

適用於

另請參閱