BackgroundWorkCostValue 列舉

定義

表示目前執行背景工作的成本。 用來做為背景工作的提示,以瞭解其可以執行多少工作。

public enum class BackgroundWorkCostValue
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class BackgroundWorkCostValue
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum BackgroundWorkCostValue
var value = Windows.ApplicationModel.Background.BackgroundWorkCostValue.low
Public Enum BackgroundWorkCostValue
繼承
BackgroundWorkCostValue
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

欄位

High 2

背景資源使用過重,背景工作不應該執行任何工作。

Low 0

背景資源使用量很低。 背景工作可以執行工作。

Medium 1

背景資源正在使用中,但背景工作可以執行一些工作。

適用於