共用方式為


AppNotificationManager.RemoveByTagAndGroupAsync(String, String) 方法

定義

以非同步方式從控制中心移除具有指定群組和標記識別項之應用程式的所有代理程式更新。

注意

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

public:
 virtual IAsyncAction ^ RemoveByTagAndGroupAsync(Platform::String ^ tag, Platform::String ^ group) = RemoveByTagAndGroupAsync;
IAsyncAction RemoveByTagAndGroupAsync(winrt::hstring const& tag, winrt::hstring const& group);
public IAsyncAction RemoveByTagAndGroupAsync(string tag, string group);
function removeByTagAndGroupAsync(tag, group)
Public Function RemoveByTagAndGroupAsync (tag As String, group As String) As IAsyncAction

參數

tag
String

Platform::String

winrt::hstring

要從指定群組中移除之通知集的唯一識別碼,使用 Tag 屬性進行存取。

group
String

Platform::String

winrt::hstring

代理程式更新群組的唯一識別碼,要從中移除通知,並使用 Group 屬性進行存取。

傳回

非同步動作。

備註

標籤群組參數都必須是非空字串。

適用於