UserActivityChannel.DeleteActivityAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.