Share via


WebUIBackgroundTaskInstanceRuntimeClass.GetDeferral Method

Definition

Informs the system that the background task might continue to perform work after the IBackgroundTask.Run method returns. This method is not applicable to JavaScript background tasks.

public:
 virtual BackgroundTaskDeferral ^ GetDeferral() = GetDeferral;
BackgroundTaskDeferral GetDeferral();
public BackgroundTaskDeferral GetDeferral();
function getDeferral()
Public Function GetDeferral () As BackgroundTaskDeferral

Returns

A background task deferral.

Implements

Remarks

This method is not applicable for background tasks written in JavaScript. JavaScript background tasks use the Web Workers close method to finish the task after all asynchronous operations have completed.

Applies to