共用方式為


AppNotificationManager.RemoveByTagAsync(String) 方法

定義

從通知中心非同步移除應用程式的所有代理程式更新, (Windows 10) 中名為「控制中心」的指定標籤識別碼。

注意

AppNotificationManager類別相依于Singleton 套件。 由於該相依性,如果您要從 獨立應用程式呼叫這些 API,請務必注意。 如需詳細資訊和詳細資料,請參閱 其他 MSIX 套件的相依性

public:
 virtual IAsyncAction ^ RemoveByTagAsync(Platform::String ^ tag) = RemoveByTagAsync;
IAsyncAction RemoveByTagAsync(winrt::hstring const& tag);
public IAsyncAction RemoveByTagAsync(string tag);
function removeByTagAsync(tag)
Public Function RemoveByTagAsync (tag As String) As IAsyncAction

參數

tag
String

Platform::String

winrt::hstring

要移除之通知集的唯一識別碼,請使用 Tag 屬性進行存取。

傳回

非同步動作。

適用於