Share via


UserActivityChannel.GetOrCreateUserActivityAsync(String) Method

Definition

Create (or get) a UserActivity with the specified id.

public:
 virtual IAsyncOperation<UserActivity ^> ^ GetOrCreateUserActivityAsync(Platform::String ^ activityId) = GetOrCreateUserActivityAsync;
/// [Windows.Foundation.Metadata.Overload("GetOrCreateUserActivityAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<UserActivity> GetOrCreateUserActivityAsync(winrt::hstring const& activityId);
[Windows.Foundation.Metadata.Overload("GetOrCreateUserActivityAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<UserActivity> GetOrCreateUserActivityAsync(string activityId);
function getOrCreateUserActivityAsync(activityId)
Public Function GetOrCreateUserActivityAsync (activityId As String) As IAsyncOperation(Of UserActivity)

Parameters

activityId
String

Platform::String

winrt::hstring

The identifier for the UserActivity.

Returns

An existing UserActivity if the activityId matches; otherwise a new UserActivity that is given the specified id.

Attributes

Applies to