BackgroundWorkCost BackgroundWorkCost BackgroundWorkCost BackgroundWorkCost Class

Retrieves a hint about resource availability for background tasks. Background tasks can use this hint to decide how much work to do when they are activated.

Syntax

Declaration

public static class BackgroundWorkCostpublic static class BackgroundWorkCostPublic Static Class BackgroundWorkCost

Properties summary

Retrieves a hint about resource availability for background tasks.

Properties

  • CurrentBackgroundWorkCost
    CurrentBackgroundWorkCost
    CurrentBackgroundWorkCost
    CurrentBackgroundWorkCost

    Retrieves a hint about resource availability for background tasks.

    public static BackgroundWorkCostValue CurrentBackgroundWorkCost { get; }public static BackgroundWorkCostValue CurrentBackgroundWorkCost { get; }Public Static ReadOnly Property CurrentBackgroundWorkCost As BackgroundWorkCostValue

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.ApplicationModel.Background.dll