Dela via


UserActivityChannel.DeleteActivityAsync(String) Method

Definition

Delete a specific user activity.

public:
 virtual IAsyncAction ^ DeleteActivityAsync(Platform::String ^ activityId) = DeleteActivityAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction DeleteActivityAsync(winrt::hstring const& activityId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction DeleteActivityAsync(string activityId);
function deleteActivityAsync(activityId)
Public Function DeleteActivityAsync (activityId As String) As IAsyncAction

Parameters

activityId
String

Platform::String

winrt::hstring

The identifier of the user activity to delete.

Returns

An asynchronous action.

Attributes

Examples

UserActivityChannel channel = UserActivityChannel.GetDefault();
string activityId = "/article?" + article.Link;
channel.DeleteActivity(activityId);

Remarks

You can get the identifier of the user activity from UserActivity.ActivityId.

Applies to