BackgroundTaskBuilder class

This topic has not yet been rated - Rate this topic

Represents a background task to be registered with the system.

Syntax


var backgroundTaskBuilder = new Windows.ApplicationModel.Background.BackgroundTaskBuilder();

Attributes

ActivatableAttribute(NTDDI_WIN8)
MarshalingBehaviorAttribute(Standard)
ThreadingAttribute(MTA)
VersionAttribute(NTDDI_WIN8)

Members

The BackgroundTaskBuilder class has these types of members:

Constructors

The BackgroundTaskBuilder class has these constructors.

ConstructorDescription
BackgroundTaskBuilder Creates an instance of the BackgroundTaskBuilder class.

 

Methods

The BackgroundTaskBuilder class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
AddCondition Adds a condition to a background task.
Register Registers a background task with the system.
SetTrigger Sets the event trigger for a background task.

 

Properties

The BackgroundTaskBuilder class has these properties.

PropertyAccess typeDescription

Name

Read/writeGets or sets the name of a background task.

TaskEntryPoint

Read/writeGets or sets the class that performs the work of a background task.

 

Remarks

Note  : This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX) and Using Windows Runtime objects in a multithreaded environment (.NET).

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

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

Metadata

Windows.winmd

 

 

Build date: 12/4/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.