Condividi tramite


UserActivityChannel.GetOrCreateUserActivityAsync(String) Metodo

Definizione

Creare (o ottenere) un UserActivity con l'ID specificato.

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)

Parametri

activityId
String

Platform::String

winrt::hstring

Identificatore per UserActivity.

Restituisce

UserActivity esistente se l'activityId corrisponde; in caso contrario, un nuovo UserActivity a cui viene assegnato l'ID specificato.

Attributi

Si applica a