IBackgroundTaskRegistration2 IBackgroundTaskRegistration2 IBackgroundTaskRegistration2 IBackgroundTaskRegistration2 IBackgroundTaskRegistration2 Interface

Definition

Provides access to a registered background task. Inherits from the IBackgroundTaskRegistration interface and adds the Trigger property.

public : interface IBackgroundTaskRegistration2 : IBackgroundTaskRegistration
struct winrt::Windows::ApplicationModel::Background::IBackgroundTaskRegistration2 : IBackgroundTaskRegistration
public interface IBackgroundTaskRegistration2 : IBackgroundTaskRegistration
Public Interface IBackgroundTaskRegistration2 Implements IBackgroundTaskRegistration
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Inheritance
IBackgroundTaskRegistration2IBackgroundTaskRegistration2IBackgroundTaskRegistration2IBackgroundTaskRegistration2IBackgroundTaskRegistration2
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Name Name Name Name Name

Gets the name of a registered background task.

(Inherited from IBackgroundTaskRegistration)
TaskId TaskId TaskId TaskId TaskId

Gets the identifier of a registered background task.

(Inherited from IBackgroundTaskRegistration)
Trigger Trigger Trigger Trigger Trigger

Gets the trigger associated with the background task.

Events

Completed Completed Completed Completed Completed

Attaches a completed event handler to the registered background task.

(Inherited from IBackgroundTaskRegistration)
Progress Progress Progress Progress Progress

Attaches a progress event handler to the registered background task.

(Inherited from IBackgroundTaskRegistration)

Methods

Unregister(Boolean) Unregister(Boolean) Unregister(Boolean) Unregister(Boolean) Unregister(Boolean)

Unregisters a registered background task.

(Inherited from IBackgroundTaskRegistration)

See also