Specifies a system condition that must be in effect for a background task to run. If a background task with a system condition is triggered, the task will not run until the condition is met.
Syntax
var value = Windows.ApplicationModel.Background.SystemConditionType.invalid;
Attributes
- VersionAttribute(NTDDI_WIN8)
Members
The SystemConditionType enumeration has these members.
| Member | Value | Description |
|---|---|---|
| Invalid | invalid | 0 |
Not a valid condition type. |
| UserPresent | userPresent | 1 |
Specifies that the background task can only run when the user is present. If a background task with the UserPresent condition is triggered, and the user is away, the task will not run until the user is present. |
| UserNotPresent | userNotPresent | 2 |
Specifies that background task can only run when the user is not present. If a background task with the UserNotPresent condition is triggered, and the user is present, the task will not run until the user becomes inactive. |
| InternetAvailable | internetAvailable | 3 |
Specifies that the background task can only run when the Internet is available. If a background task with the InternetAvailable condition is triggered, and the Internet is not available, the task will not run until the Internet is available again. |
| InternetNotAvailable | internetNotAvailable | 4 |
Specifies that the background task can only run when the Internet is not available. If a background task with the InternetNotAvailable condition is triggered, and the Internet is available, the task will not run until the Internet is unavailable. |
| SessionConnected | sessionConnected | 5 |
Specifies that the background task can only run when the user's session is connected. If a background task with the SessionConnected condition is triggered, and the user session is not logged in, the task will run when the user logs in. |
| SessionDisconnected | sessionDisconnected | 6 |
Specifies that the background task can only run when the user's session is disconnected. If a background task with the SessionDisconnected condition is triggered, and the user is logged in, the task will run when the user logs out. |
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012