Share via


ToastNotificationHistory.Remove 方法

定義

多載

Remove(String)

從控制中心移除具有指定標籤標籤的個別快顯通知。

Remove(String, String)

使用通知的標籤和群組標籤,從動作中移除快顯通知。

Remove(String, String, String)

從控制中心移除個別快顯通知,由標籤標籤、群組標籤和應用程式識別碼的組合來識別。

Remove(String)

從控制中心移除具有指定標籤標籤的個別快顯通知。

public:
 virtual void Remove(Platform::String ^ tag) = Remove;
/// [Windows.Foundation.Metadata.Overload("Remove")]
void Remove(winrt::hstring const& tag);
[Windows.Foundation.Metadata.Overload("Remove")]
public void Remove(string tag);
function remove(tag)
Public Sub Remove (tag As String)

參數

tag
String

Platform::String

winrt::hstring

要移除之快顯通知的標籤標籤。

屬性

備註

當您的應用程式快顯通知分類系統只使用標記建置時,您應該使用此多載來移除通知。

另請參閱

適用於

Remove(String, String)

使用通知的標籤和群組標籤,從動作中移除快顯通知。

public:
 virtual void Remove(Platform::String ^ tag, Platform::String ^ group) = Remove;
/// [Windows.Foundation.Metadata.Overload("RemoveGroupedTag")]
void Remove(winrt::hstring const& tag, winrt::hstring const& group);
[Windows.Foundation.Metadata.Overload("RemoveGroupedTag")]
public void Remove(string tag, string group);
function remove(tag, group)
Public Sub Remove (tag As String, group As String)

參數

tag
String

Platform::String

winrt::hstring

要移除之快顯通知的標籤標籤。

group
String

Platform::String

winrt::hstring

要移除之快顯通知的群組標籤。

屬性

備註

當您的應用程式快顯通知分類系統是使用標籤和群組建置時,您應該使用此多載來移除通知。

另請參閱

適用於

Remove(String, String, String)

從控制中心移除個別快顯通知,由標籤標籤、群組標籤和應用程式識別碼的組合來識別。

public:
 virtual void Remove(Platform::String ^ tag, Platform::String ^ group, Platform::String ^ applicationId) = Remove;
/// [Windows.Foundation.Metadata.Overload("RemoveGroupedTagWithId")]
void Remove(winrt::hstring const& tag, winrt::hstring const& group, winrt::hstring const& applicationId);
[Windows.Foundation.Metadata.Overload("RemoveGroupedTagWithId")]
public void Remove(string tag, string group, string applicationId);
function remove(tag, group, applicationId)
Public Sub Remove (tag As String, group As String, applicationId As String)

參數

tag
String

Platform::String

winrt::hstring

要移除之快顯通知的標籤標籤。

group
String

Platform::String

winrt::hstring

要移除之快顯通知的群組標籤。

applicationId
String

Platform::String

winrt::hstring

傳送指定快顯通知之應用程式的應用程式識別碼。 此應用程式必須與發出此移除要求的應用程式相同應用程式套件的一部分。

屬性

備註

您應該使用此多載來移除應用程式套件中特定應用程式的通知,如 applicationId 參數所指定。 如果您的應用程式只使用標記,您可以傳入 群組 參數的空字串。

另請參閱

適用於