Compartir a través de


UserActivityRequestedEventArgs Clase

Definición

Se pasa al evento UserActivityRequestManager.UserActivityRequested . Permite que el controlador del evento devuelva una UserActivity.

public ref class UserActivityRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class UserActivityRequestedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UserActivityRequestedEventArgs
Public NotInheritable Class UserActivityRequestedEventArgs
Herencia
Object Platform::Object IInspectable UserActivityRequestedEventArgs
Atributos

Requisitos de Windows

Familia de dispositivos
Windows 10, version 1803 (se introdujo en la versión 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (se introdujo en la versión v6.0)

Ejemplos

private async void UserActivityRequested(
    Windows.ApplicationModel.UserActivities.UserActivityRequestManager sender,
    Windows.ApplicationModel.UserActivities.UserActivityRequestedEventArgs args)
{
    UserActivity userActivity = // app code to create a userActivity
    args.Request.SetUserActivity(userActivity);
}

Propiedades

Request

Obtiene el UserActivityRequest asociado a una llamada al controlador de eventos UserActivityRequestManager.UserActivityRequested .

Métodos

GetDeferral()

Obtiene un objeto de aplazamiento para que pueda tener más tiempo para controlar el evento UserActivityRequestManager.UserActivityRequested .

Se aplica a