Compartilhar via


UserActivityChannel.GetOrCreateUserActivityAsync(String) Método

Definição

Crie (ou obtenha) uma UserActivity com a ID especificada.

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

O identificador para UserActivity.

Retornos

Um UserActivity existente se a activityId corresponder; caso contrário, uma nova UserActivity que recebe a ID especificada.

Atributos

Aplica-se a