BackgroundTaskDetail

DesktopOperating SystemUWPWin32Windows

Properties

Name Type Description
id string
name string
entryPoint string Fully qualified class name implementing IBackgroundTask
trigger object
conditions array
progress integer Current progress (0-100)
lastCompletedTime string
lastRunResult string Result of the last execution
View JSON Schema on GitHub

JSON Schema

microsoft-windows-10-backgroundtaskdetail-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/BackgroundTaskDetail",
  "title": "BackgroundTaskDetail",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "entryPoint": {
      "type": "string",
      "description": "Fully qualified class name implementing IBackgroundTask"
    },
    "trigger": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "parameters": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "conditions": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "InternetAvailable",
          "InternetNotAvailable",
          "SessionConnected",
          "SessionDisconnected",
          "UserPresent",
          "UserNotPresent",
          "FreeNetworkAvailable",
          "BackgroundWorkCostNotHigh"
        ]
      }
    },
    "progress": {
      "type": "integer",
      "description": "Current progress (0-100)"
    },
    "lastCompletedTime": {
      "type": "string",
      "format": "date-time"
    },
    "lastRunResult": {
      "type": "string",
      "description": "Result of the last execution"
    }
  }
}