IBackgroundTaskInstance interface

Applies to Windows and Windows Phone

Provides access to a background task instance.

Syntax


public interface IBackgroundTaskInstance

Attributes

[Version(0x06020000)]

Members

The IBackgroundTaskInstance interface has these types of members:

Events

The IBackgroundTaskInstance interface has these events.

EventDescription
Canceled Attaches a cancellation event handler to the background task instance.

 

Methods

The IBackgroundTaskInstance interface has these methods. It also inherits methods from the Object class.

MethodDescription
GetDeferral Informs the system that the background task might continue to perform work after the IBackgroundTask.Run method returns.

 

Properties

The IBackgroundTaskInstance interface has these properties.

PropertyAccess typeDescription

InstanceId

Read-onlyGets the instance ID of the background task instance.

Progress

Read/writeGets or sets progress status for a background task instance.

SuspendedCount

Read-onlyGets the number of times resource management policy caused the background task to be suspended.

Task

Read-onlyGets access to the registered background task for this background task instance.

TriggerDetails

Read-onlyGets additional information associated with a background task instance.

 

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.Background
Windows::ApplicationModel::Background [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft