IActivity.InvokeAsync(UIElement, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.