IBackgroundTaskRegistration2 Interface
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.
Provides access to a registered background task. Inherits from the IBackgroundTaskRegistration interface and adds the Trigger property.
public interface class IBackgroundTaskRegistration2 : IBackgroundTaskRegistration
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1631110915, 48006, 16658, 175, 195, 127, 147, 155, 22, 110, 59)]
struct IBackgroundTaskRegistration2 : IBackgroundTaskRegistration
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1631110915, 48006, 16658, 175, 195, 127, 147, 155, 22, 110, 59)]
public interface IBackgroundTaskRegistration2 : IBackgroundTaskRegistration
Public Interface IBackgroundTaskRegistration2
Implements IBackgroundTaskRegistration
- Derived
- Attributes
- Implements
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Properties
Name |
Gets the name of a registered background task. (Inherited from IBackgroundTaskRegistration) |
TaskId |
Gets the identifier of a registered background task. (Inherited from IBackgroundTaskRegistration) |
Trigger |
Gets the trigger associated with the background task. |
Methods
Unregister(Boolean) |
Unregisters a registered background task. (Inherited from IBackgroundTaskRegistration) |
Events
Completed |
Attaches a completed event handler to the registered background task. (Inherited from IBackgroundTaskRegistration) |
Progress |
Attaches a progress event handler to the registered background task. (Inherited from IBackgroundTaskRegistration) |