Compartir a través de


UserActivityChannel.GetOrCreateUserActivityAsync(String) Método

Definición

Cree (u obtenga) una UserActivity con el identificador especificado.

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)

Parámetros

activityId
String

Platform::String

winrt::hstring

Identificador de UserActivity.

Devoluciones

UserActivity existente si el activityId coincide; de lo contrario, se le asigna un nuevo UserActivity al identificador especificado.

Atributos

Se aplica a