UserActivityChannel.GetOrCreateUserActivityAsync(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.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for