IActivity.InvokeAsync(UIElement, CancellationToken) Method

Definition

Invokes the current activity.

public System.Threading.Tasks.Task InvokeAsync (Windows.UI.Xaml.UIElement element, System.Threading.CancellationToken token);
abstract member InvokeAsync : Windows.UI.Xaml.UIElement * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function InvokeAsync (element As UIElement, token As CancellationToken) As Task

Parameters

element
Windows.UI.Xaml.UIElement

The target Windows.UI.Xaml.UIElement to invoke the activity for.

token
CancellationToken

A cancellation token to cancel the activity before it completes.

Returns

A Task that indicates when the activity has completed its execution.

Applies to